|
OpenPetra
Free Administration Software for Non-Profits
|
Thrown in case a caller wants to close a DB Connection when there is still a Transaction running - which the act of closing of the DB Connection would roll back - and that DB Transaction was started on another Thread (running DB commands on different Threads 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 | |
| EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException () | |
| Initializes a new instance of this Exception Class. More... | |
| EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException (String AMessage) | |
| Initializes a new instance of this Exception Class with a specified error message. More... | |
| EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException (String AMessage, String AThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection, string AThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection) | |
| Initializes a new instance of this Exception Class with a specified error message and ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection and ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection. More... | |
| EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException (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 EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException. More... | |
Properties | |
| String | ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection [get, set] |
| ThreadIdentifier of the Thread which established the current DB Connection. More... | |
| String | ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection [get, set] |
| ThreadIdentifier of the Thread which attempted to close the current DB Connection. More... | |
Thrown in case a caller wants to close a DB Connection when there is still a Transaction running - which the act of closing of the DB Connection would roll back - and that DB Transaction was started on another Thread (running DB commands on different Threads 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 ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection and ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection.
| AMessage | The error message that explains the reason for the Exception. |
| AThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection | ThreadIdentifier of the Thread which established the current DB Connection. |
| AThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection | ThreadIdentifier of the Thread which attempted to close the current DB Connection. |
|
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 |
Creates and returns a string representation of the current EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.
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.
|
getset |
ThreadIdentifier of the Thread which attempted to close the current DB Connection.
|
getset |
ThreadIdentifier of the Thread which established the current DB Connection.