DbiException Class Reference

#include <DbiException.h>

List of all members.

Public Member Functions

 DbiException (const char *msg=0, Int_t code=-1, Int_t dbType=-1)
 DbiException (const TSQLServer &server, Int_t dbType=-1)
 DbiException (const TSQLStatement &statement, Int_t dbType=-1)
 DbiException (const DbiException &that)
virtual ~DbiException ()
const std::string & GetMessage () const
Int_t GetErrorCode () const
Int_t GetDbType () const

Private Attributes

std::string fMessage
 The message associated with the exception.
Int_t fErrorCode
 The exception error code.
Int_t fDbType
 The type of database that issued the exception.

Detailed Description

Id
DbiException.h,v 1.2 2006/08/23 16:27:43 west Exp

Definition at line 38 of file DbiException.h.


Constructor & Destructor Documentation

DbiException::DbiException ( const char *  msg = 0,
Int_t  code = -1,
Int_t  dbType = -1 
)

Definition at line 28 of file DbiException.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00030                                                       :
00031 fMessage(msg),
00032 fErrorCode(code),
00033 fDbType(dbType)
00034 {
00035 
00036   LEA_CTOR    //Leak Checker
00037   MSG("Dbi", Msg::kVerbose) << "Creating DbiException" << endl;
00038 
00039 }

DbiException::DbiException ( const TSQLServer &  server,
Int_t  dbType = -1 
)

Definition at line 43 of file DbiException.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00044                                                       :
00045 fMessage(server.GetErrorMsg()),
00046 fErrorCode(server.GetErrorCode()),
00047 fDbType(dbType)
00048 {
00049 
00050   LEA_CTOR    //Leak Checker
00051   MSG("Dbi", Msg::kVerbose) << "Creating DbiException" << endl;
00052 
00053 }

DbiException::DbiException ( const TSQLStatement &  statement,
Int_t  dbType = -1 
)

Definition at line 57 of file DbiException.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00058                                                       :
00059 fMessage(statement.GetErrorMsg()),
00060 fErrorCode(statement.GetErrorCode()),
00061 fDbType(dbType)
00062 {
00063 
00064   LEA_CTOR    //Leak Checker
00065   MSG("Dbi", Msg::kVerbose) << "Creating DbiException" << endl;
00066 
00067 }

DbiException::DbiException ( const DbiException that  ) 

Definition at line 72 of file DbiException.cxx.

References Msg::kVerbose, LEA_CTOR, and MSG.

00073 {
00074 
00075   LEA_CTOR    //Leak Checker
00076   MSG("Dbi", Msg::kVerbose) << "Creating DbiException" << endl;
00077 
00078   *this = that;
00079 
00080 }

DbiException::~DbiException (  )  [virtual]

Definition at line 85 of file DbiException.cxx.

References Msg::kVerbose, LEA_DTOR, and MSG.

00085                             {
00086 
00087 
00088   LEA_DTOR    //Leak Checker
00089   MSG("Dbi", Msg::kVerbose) << "Destroying DbiException" << endl;
00090 
00091 }


Member Function Documentation

Int_t DbiException::GetDbType (  )  const [inline]

Definition at line 53 of file DbiException.h.

References fDbType.

Referenced by operator<<().

00053 { return fDbType; }

Int_t DbiException::GetErrorCode (  )  const [inline]

Definition at line 52 of file DbiException.h.

References fErrorCode.

Referenced by operator<<().

00052 { return fErrorCode; }

const std::string& DbiException::GetMessage (  )  const [inline]

Definition at line 51 of file DbiException.h.

References fMessage.

Referenced by operator<<().

00051 { return fMessage; }


Member Data Documentation

Int_t DbiException::fDbType [private]

The type of database that issued the exception.

Definition at line 69 of file DbiException.h.

Referenced by GetDbType().

Int_t DbiException::fErrorCode [private]

The exception error code.

Definition at line 66 of file DbiException.h.

Referenced by GetErrorCode().

std::string DbiException::fMessage [private]

The message associated with the exception.

Definition at line 63 of file DbiException.h.

Referenced by GetMessage().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1