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

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...

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

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...
 

Detailed Description

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!).

Constructor & Destructor Documentation

◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [1/4]

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

Initializes a new instance of this Exception Class.

◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [2/4]

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

◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [3/4]

Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException ( String  AMessage,
String  AThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection,
string  AThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection 
)
inline

Initializes a new instance of this Exception Class with a specified error message and ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection and ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection.

Parameters
AMessageThe error message that explains the reason for the Exception.
AThreadIdentifierOfThreadWhichEstablishedCurrentDBConnectionThreadIdentifier of the Thread which established the current DB Connection.
AThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnectionThreadIdentifier of the Thread which attempted to close the current DB Connection.

◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [4/4]

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

Creates and returns a string representation of the current EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.

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.

Property Documentation

◆ ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection

String Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.ThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection
getset

ThreadIdentifier of the Thread which attempted to close the current DB Connection.

◆ ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection

String Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.ThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection
getset

ThreadIdentifier of the Thread which established the current DB Connection.


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