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

Thrown if an attempt to create a DB connection failed. More...

Inheritance diagram for Ict.Common.DB.Exceptions.EDBConnectionNotEstablishedException:
Ict.Common.Exceptions.EOPDBException Ict.Common.Exceptions.EOPException Ict.Common.DB.Exceptions.EDBConnectionIsAlreadyOpenException Ict.Common.DB.Exceptions.EDBConnectionWasAlreadyEstablishedException

Public Member Functions

 EDBConnectionNotEstablishedException ()
 Initializes a new instance of this Exception Class. More...
 
 EDBConnectionNotEstablishedException (String AMessage)
 Initializes a new instance of this Exception Class with a specified error message. More...
 
 EDBConnectionNotEstablishedException (string AConnectionString, Exception AInnerException, bool ALogException=true)
 Use this to pass on the ConnectionString with the Exception and to log the Exception to the log file. More...
 
 EDBConnectionNotEstablishedException (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...
 

Detailed Description

Thrown if an attempt to create a DB connection failed.

Constructor & Destructor Documentation

◆ EDBConnectionNotEstablishedException() [1/4]

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

Initializes a new instance of this Exception Class.

◆ EDBConnectionNotEstablishedException() [2/4]

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

◆ EDBConnectionNotEstablishedException() [3/4]

Ict.Common.DB.Exceptions.EDBConnectionNotEstablishedException.EDBConnectionNotEstablishedException ( string  AConnectionString,
Exception  AInnerException,
bool  ALogException = true 
)
inline

Use this to pass on the ConnectionString with the Exception and to log the Exception to the log file.

Parameters
AConnectionStringDatabase connection string.
AInnerExceptionThe Exception that is the cause of the current Exception, or a null reference if no inner Exception is specified.
ALogExceptionSet to false to not log the Exception (default=true).

◆ EDBConnectionNotEstablishedException() [4/4]

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

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