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

Thrown in case a caller wants to create a Command that would be enlisted in a DB Transaction that was started against a DB Connection that is different from the DB Connection of current DB Connection (running DB Commands on one DB Connection with a DB Transaction that was started against another DB Connection isn't supported [because each DB Command is bound to a certain DB Connection as the ADO.NET providers {specifically: the PostgreSQL provider, Npgsql} aren't thread-safe!}]). More...

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

Public Member Functions

 EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException ()
 Initializes a new instance of this Exception Class. More...
 
 EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException (String AMessage)
 Initializes a new instance of this Exception Class with a specified error message. More...
 
 EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException (String AMessage, String AConnectionIdentifierOfConnectionOfPassedInTransaction, string AConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance)
 Initializes a new instance of this Exception Class with a specified error message and ConnectionIdentifierOfConnectionOfPassedInTransaction and ConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance. More...
 
 EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException (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...
 
override string ToString ()
 Creates and returns a string representation of the current EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException. More...
 

Properties

String ConnectionIdentifierOfConnectionOfPassedInTransaction [get, set]
 ConnectionIdentifier of the Connection of the Transaction that got passed in as an Argument. More...
 
String ConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance [get, set]
 ConnectionIdentifier of the current TDataBase instance. More...
 

Detailed Description

Thrown in case a caller wants to create a Command that would be enlisted in a DB Transaction that was started against a DB Connection that is different from the DB Connection of current DB Connection (running DB Commands on one DB Connection with a DB Transaction that was started against another DB Connection isn't supported [because each DB Command is bound to a certain DB Connection as the ADO.NET providers {specifically: the PostgreSQL provider, Npgsql} aren't thread-safe!}]).

Constructor & Destructor Documentation

◆ EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException() [1/4]

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

Initializes a new instance of this Exception Class.

◆ EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException() [2/4]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException ( 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.

◆ EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException() [3/4]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException ( String  AMessage,
String  AConnectionIdentifierOfConnectionOfPassedInTransaction,
string  AConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance 
)
inline

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

Parameters
AMessageThe error message that explains the reason for the Exception.
AConnectionIdentifierOfConnectionOfPassedInTransactionConnectionIdentifier of the Connection of the Transaction that got passed in as an Argument.
AConnectionIdentifierOfConnectionOfCurrentTDataBaseInstanceConnectionIdentifier of the current TDataBase instance.

◆ EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException() [4/4]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException ( 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.

Member Function Documentation

◆ ToString()

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

Property Documentation

◆ ConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException.ConnectionIdentifierOfConnectionOfCurrentTDataBaseInstance
getset

ConnectionIdentifier of the current TDataBase instance.

◆ ConnectionIdentifierOfConnectionOfPassedInTransaction

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandOnDifferentDBConnectionThanTheDBConnectionOfOfTheDBTransactionThatGotPassedException.ConnectionIdentifierOfConnectionOfPassedInTransaction
getset

ConnectionIdentifier of the Connection of the Transaction that got passed in as an Argument.


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