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...
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!).
◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [1/5]
Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException |
( |
| ) |
|
|
inline |
Initializes a new instance of this Exception Class.
◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [2/5]
Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException |
( |
String |
AMessage | ) |
|
|
inline |
Initializes a new instance of this Exception Class with a specified error message.
- Parameters
-
AMessage | The error message that explains the reason for the Exception. |
◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [3/5]
Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException |
( |
String |
AMessage, |
|
|
String |
AThreadIdentifierOfThreadWhichEstablishedCurrentDBConnection, |
|
|
string |
AThreadIdentifierOfThreadWhichAttemptedToCloseCurrentDBConnection |
|
) |
| |
|
inline |
◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [4/5]
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
-
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. |
◆ EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException() [5/5]
Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException |
( |
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
-
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. |
◆ GetObjectData()
override void Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.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
-
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. |
◆ ToString()
override string Ict.Common.DB.Exceptions.EDBAttemptingToCloseDBConnectionThatGotEstablishedOnDifferentThreadException.ToString |
( |
| ) |
|
|
inline |
◆ 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: