Class InvalidTransactionException
Exception that is thrown when a required transaction is not usable.
Inheritance
Implements
Inherited Members
Namespace: TimeCockpit.Data.Database
Assembly: TimeCockpit.Data.dll
Syntax
public class InvalidTransactionException : Exception, _Exception, ISerializable
Remarks
Many operations on Db
Constructors
InvalidTransactionException()
Initializes a new instance of the InvalidTransactionException class
Declaration
public InvalidTransactionException()
InvalidTransactionException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidTransactionException class
Declaration
protected InvalidTransactionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System. |
context | The StreamingContext that contains contextual information about the source or destination. |
InvalidTransactionException(String)
Initializes a new instance of the InvalidTransactionException class
Declaration
public InvalidTransactionException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | Message describing the cause of the error |
InvalidTransactionException(String, Exception)
Initializes a new instance of the InvalidTransactionException class
Declaration
public InvalidTransactionException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | Message describing the cause of the error |
System. |
innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System. |
context | The StreamingContext that contains contextual information about the source or destination. |