OpenPetra
Free Administration Software for Non-Profits
Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException Class Reference

Thrown in case a caller wants to create a Command that would be enlisted in a DB Transaction that is different from the current DB Transaction (running DB Commands on a DB Transaction other than the currently running DB Transaction is not supported [because parallel DB Transactions are not supported]). More...

Inheritance diagram for Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException:
Ict.Common.DB.Exceptions.EDBAccessLackingCoordinationException Ict.Common.Exceptions.EOPDBException Ict.Common.Exceptions.EOPException

Public Member Functions

 EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ()
 Initializes a new instance of this Exception Class. More...
 
 EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException (String AMessage)
 Initializes a new instance of this Exception Class with a specified error message. More...
 
 EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException (String AMessage, String ATransactionIdentifierOfPassedInTransaction, string ATransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance)
 Initializes a new instance of this Exception Class with a specified error message and TransactionIdentifierOfPassedInTransaction and TransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance. More...
 
 EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException (string AMessage, Exception AInnerException)
 Initializes a new instance of this Exception Class with a specified error message and a reference to the inner Exception that is the cause of this Exception. More...
 
 EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException (SerializationInfo AInfo, StreamingContext AContext)
 Initializes a new instance of this Exception Class with serialized data. Needed for Remoting and general serialization. More...
 
override void GetObjectData (SerializationInfo AInfo, StreamingContext AContext)
 Sets the SerializationInfo with information about this Exception. Needed for Remoting and general serialization. More...
 
override string ToString ()
 Creates and returns a string representation of the current EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException. More...
 

Properties

String TransactionIdentifierOfPassedInTransaction [get, set]
 TransactionIdentifier of the Transaction that got passed in as an Argument. More...
 
String TransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance [get, set]
 TransactionIdentifier of the current Transaction of the current TDataBase instance (which should create the Command). More...
 

Detailed Description

Thrown in case a caller wants to create a Command that would be enlisted in a DB Transaction that is different from the current DB Transaction (running DB Commands on a DB Transaction other than the currently running DB Transaction is not supported [because parallel DB Transactions are not supported]).

Constructor & Destructor Documentation

◆ EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException() [1/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ( )
inline

Initializes a new instance of this Exception Class.

◆ EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException() [2/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ( String  AMessage)
inline

Initializes a new instance of this Exception Class with a specified error message.

Parameters
AMessageThe error message that explains the reason for the Exception.

◆ EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException() [3/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ( String  AMessage,
String  ATransactionIdentifierOfPassedInTransaction,
string  ATransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance 
)
inline

Initializes a new instance of this Exception Class with a specified error message and TransactionIdentifierOfPassedInTransaction and TransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance.

Parameters
AMessageThe error message that explains the reason for the Exception.
ATransactionIdentifierOfPassedInTransactionTransactionIdentifier of the Transaction that got passed in as an Argument.
ATransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstanceTransactionIdentifier of the current Transaction of the current TDataBase instance (which should create the Command).

◆ EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException() [4/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ( string  AMessage,
Exception  AInnerException 
)
inline

Initializes a new instance of this Exception Class with a specified error message and a reference to the inner Exception that is the cause of this Exception.

Parameters
AMessageThe error message that explains the reason for the Exception.
AInnerExceptionThe Exception that is the cause of the current Exception, or a null reference if no inner Exception is specified.

◆ EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException() [5/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException ( SerializationInfo  AInfo,
StreamingContext  AContext 
)
inline

Initializes a new instance of this Exception Class with serialized data. Needed for Remoting and general serialization.

Only to be used by the .NET Serialization system (eg within .NET Remoting).

Parameters
AInfoThe SerializationInfo that holds the serialized object data about the Exception being thrown.
AContextThe StreamingContext that contains contextual information about the source or destination.

Member Function Documentation

◆ GetObjectData()

override void Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.GetObjectData ( SerializationInfo  AInfo,
StreamingContext  AContext 
)
inline

Sets the SerializationInfo with information about this Exception. Needed for Remoting and general serialization.

Only to be used by the .NET Serialization system (eg within .NET Remoting).

Parameters
AInfoThe SerializationInfo that holds the serialized object data about the Exception being thrown.
AContextThe StreamingContext that contains contextual information about the source or destination.

◆ ToString()

override string Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.ToString ( )
inline

Creates and returns a string representation of the current EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.

Returns
A string representation of the current EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.

See https://msdn.microsoft.com/en-us/library/system.exception.tostring(v=vs.100).aspx for the standard .NET implementation of the System.Exception.ToString() Method.

Property Documentation

◆ TransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.TransactionIdentifierOfCurrentTransactionOfCurrentTDataBaseInstance
getset

TransactionIdentifier of the current Transaction of the current TDataBase instance (which should create the Command).

◆ TransactionIdentifierOfPassedInTransaction

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandEnlistedInDifferentDBTransactionThanTheCurrentDBTransactionException.TransactionIdentifierOfPassedInTransaction
getset

TransactionIdentifier of the Transaction that got passed in as an Argument.


The documentation for this class was generated from the following file: