Class InvalidTransactionException
- Namespace
- TimeCockpit.Data.Database
- Assembly
- TimeCockpit.Data.dll
Exception that is thrown when a required transaction is not usable.
public class InvalidTransactionException : Exception, _Exception, ISerializable
- Inheritance
-
ObjectExceptionInvalidTransactionException
- Implements
-
_ExceptionISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.MessageException.DataException.InnerExceptionException.TargetSiteException.StackTraceException.HelpLinkException.SourceException.HResultException.SerializeObjectStateObject.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.MemberwiseClone()
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
public InvalidTransactionException()
InvalidTransactionException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidTransactionException class
protected InvalidTransactionException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
InvalidTransactionException(String)
Initializes a new instance of the InvalidTransactionException class
public InvalidTransactionException(string message)
Parameters
messageStringMessage describing the cause of the error
InvalidTransactionException(String, Exception)
Initializes a new instance of the InvalidTransactionException class
public InvalidTransactionException(string message, Exception innerException)
Parameters
messageStringMessage describing the cause of the error
innerExceptionExceptionThe 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.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.