OpenPetra
Free Administration Software for Non-Profits
|
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...
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... | |
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!)
|
inline |
Initializes a new instance of this Exception Class.
|
inline |
Initializes a new instance of this Exception Class with a specified error message.
AMessage | The error message that explains the reason for the Exception. |
|
inline |
Initializes a new instance of this Exception Class with a specified error message and ThreadIdentifierOfThreadWhichStartedTransaction and ThreadIdentifierOfThreadWhichWantsToCreateCommand.
AMessage | The error message that explains the reason for the Exception. |
AThreadIdentifierOfThreadWhichStartedTransaction | ThreadIdentifier of the Thread which started the existing Transaction. |
AThreadIdentifierOfThreadWhichWantsToCreateCommand | ThreadIdentifier of the Thread which wants to create a Command using the Transaction that was started on another Thread. |
|
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.
AMessage | The error message that explains the reason for the Exception. |
AInnerException | The Exception that is the cause of the current Exception, or a null reference if no inner Exception is specified. |
|
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).
AInfo | The SerializationInfo that holds the serialized object data about the Exception being thrown. |
AContext | The StreamingContext that contains contextual information about the source or destination. |
|
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).
AInfo | The SerializationInfo that holds the serialized object data about the Exception being thrown. |
AContext | The StreamingContext that contains contextual information about the source or destination. |
|
inline |
Creates and returns a string representation of the current EDBAttemptingToCreateCommandThatWouldRunCommandOnDifferentThreadThanThreadOfTheTransactionThatGotPassedException.
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.
|
getsetinherited |
ThreadIdentifier of the Thread which started the existing Transaction.
|
getset |
ThreadIdentifier of the Thread which started the existing Transaction.
|
getset |
ThreadIdentifier of the Thread which wants to create a Command using the Transaction that was started on another Thread.
|
getsetinherited |
ThreadIdentifier of the Thread which wants to reuse an existing Transaction.