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 DbClient interact with an internal transaction object. If the transaction object is not usable (e.g. a database server terminated the transaction) operations depending on it can no longer be executed (e.g. SaveObject). The program flow interacting with the DbClient should rollback on any unexpected exception which causes the faulty transaction to be disposed.
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.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | 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.String | 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.String | message | Message describing the cause of the error |
System.Exception | 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.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |