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

Thrown in case a caller wants to work with a Transaction and that DB Transaction was started on another Thread (running DB commands on different Threads in the same DB Transaction [and hence on the same DB Connection] isn't supported!). More...

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

Public Member Functions

 EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException ()
 Initializes a new instance of this Exception Class. More...
 
 EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException (String AMessage)
 Initializes a new instance of this Exception Class with a specified error message. More...
 
 EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException (String AMessage, String AThreadIdentifierOfThreadWhichStartedExistingTransaction, string AThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction)
 Initializes a new instance of this Exception Class with a specified error message and ThreadIdentifierOfThreadWhichStartedExistingTransaction and ThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction. More...
 
 EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException (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 EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException. More...
 

Properties

String ThreadIdentifierOfThreadWhichStartedExistingTransaction [get, set]
 ThreadIdentifier of the Thread which started the existing Transaction. More...
 
String ThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction [get, set]
 ThreadIdentifier of the Thread which wants to reuse an existing Transaction. More...
 

Detailed Description

Thrown in case a caller wants to work with a Transaction and that DB Transaction was started on another Thread (running DB commands on different Threads in the same DB Transaction [and hence on the same DB Connection] isn't supported!).

Constructor & Destructor Documentation

◆ EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException() [1/4]

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

Initializes a new instance of this Exception Class.

◆ EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException() [2/4]

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

◆ EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException() [3/4]

Ict.Common.DB.Exceptions.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException ( String  AMessage,
String  AThreadIdentifierOfThreadWhichStartedExistingTransaction,
string  AThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction 
)
inline

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

Parameters
AMessageThe error message that explains the reason for the Exception.
AThreadIdentifierOfThreadWhichStartedExistingTransactionThreadIdentifier of the Thread which started the existing Transaction.
AThreadIdentifierOfThreadWhichWantsToReuseExistingTransactionThreadIdentifier of the Thread which wants to reuse an existing Transaction.

◆ EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException() [4/4]

Ict.Common.DB.Exceptions.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException ( 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.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.ToString ( )
inline

Creates and returns a string representation of the current EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.

Returns
A string representation of the current EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.

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

◆ ThreadIdentifierOfThreadWhichStartedExistingTransaction

String Ict.Common.DB.Exceptions.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.ThreadIdentifierOfThreadWhichStartedExistingTransaction
getset

ThreadIdentifier of the Thread which started the existing Transaction.

◆ ThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction

String Ict.Common.DB.Exceptions.EDBAttemptingToWorkWithTransactionThatGotStartedOnDifferentThreadException.ThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction
getset

ThreadIdentifier of the Thread which wants to reuse an existing Transaction.


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