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

Thrown in case a caller wants to create a Command that would be executed on a Thread that is different from the Thread that started the DB Transaction that got passed in as an Argument (running DB commands on different Threads in the same DB Transaction [and hence on the same DB Connection] isn't supported as the ADO.NET providers [specifically: the PostgreSQL provider, Npgsql] aren't thread-safe!) More...

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

Public Member Functions

 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException ()
 Initializes a new instance of this Exception Class. More...
 
 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException (String AMessage)
 Initializes a new instance of this Exception Class with a specified error message. More...
 
 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException (String AMessage, String AThreadIdentifierOfThreadWhichStartedTransaction, string AThreadIdentifierOfThreadWhichWantsToCreateCommand)
 Initializes a new instance of this Exception Class with a specified error message and ThreadIdentifierOfThreadWhichStartedTransaction and ThreadIdentifierOfThreadWhichWantsToCreateCommand. More...
 
 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException (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...
 
 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException (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 EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException. More...
 

Properties

String ThreadIdentifierOfThreadWhichStartedTransaction [get, set]
 ThreadIdentifier of the Thread which started the existing Transaction. More...
 
String ThreadIdentifierOfThreadWhichWantsToCreateCommand [get, set]
 ThreadIdentifier of the Thread which wants to create a Command using the Transaction that was started on another Thread. More...
 
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 create a Command that would be executed on a Thread that is different from the Thread that started the DB Transaction that got passed in as an Argument (running DB commands on different Threads in the same DB Transaction [and hence on the same DB Connection] isn't supported as the ADO.NET providers [specifically: the PostgreSQL provider, Npgsql] aren't thread-safe!)

Constructor & Destructor Documentation

◆ EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException() [1/5]

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

Initializes a new instance of this Exception Class.

◆ EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException() [2/5]

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

◆ EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException() [3/5]

Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException.EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException ( String  AMessage,
String  AThreadIdentifierOfThreadWhichStartedTransaction,
string  AThreadIdentifierOfThreadWhichWantsToCreateCommand 
)
inline

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

Parameters
AMessageThe error message that explains the reason for the Exception.
AThreadIdentifierOfThreadWhichStartedTransactionThreadIdentifier of the Thread which started the existing Transaction.
AThreadIdentifierOfThreadWhichWantsToCreateCommandThreadIdentifier of the Thread which wants to create a Command using the Transaction that was started on another Thread.

◆ EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException() [4/5]

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

◆ EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException() [5/5]

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

Property Documentation

◆ ThreadIdentifierOfThreadWhichStartedExistingTransaction

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

ThreadIdentifier of the Thread which started the existing Transaction.

◆ ThreadIdentifierOfThreadWhichStartedTransaction

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException.ThreadIdentifierOfThreadWhichStartedTransaction
getset

ThreadIdentifier of the Thread which started the existing Transaction.

◆ ThreadIdentifierOfThreadWhichWantsToCreateCommand

String Ict.Common.DB.Exceptions.EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException.ThreadIdentifierOfThreadWhichWantsToCreateCommand
getset

ThreadIdentifier of the Thread which wants to create a Command using the Transaction that was started on another Thread.

◆ ThreadIdentifierOfThreadWhichWantsToReuseExistingTransaction

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

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


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