Table of Contents

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
Object
Exception
InvalidTransactionException
Implements
_Exception
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
Object.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

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The 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

message String

Message describing the cause of the error

InvalidTransactionException(String, Exception)

Initializes a new instance of the InvalidTransactionException class

public InvalidTransactionException(string message, Exception innerException)

Parameters

message String

Message describing the cause of the error

innerException Exception

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.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.