#include <DbiExceptionLog.h>
Public Member Functions | |
| DbiExceptionLog (const DbiException *e=0) | |
| virtual | ~DbiExceptionLog () |
| Bool_t | IsEmpty () const |
| const std::vector< DbiException > & | GetEntries () const |
| void | Print () const |
| UInt_t | Size () const |
| void | Copy (DbiExceptionLog &that, UInt_t start=0) const |
| void | AddLog (const DbiExceptionLog &el) |
| void | AddEntry (const DbiException &e) |
| void | AddEntry (const char *errMsg, Int_t code=-1, Int_t dbType=-1) |
| void | AddEntry (const std::string &errMsg, Int_t code=-1, Int_t dbType=-1) |
| void | AddEntry (const TSQLServer &server, Int_t dbType=-1) |
| void | AddEntry (const TSQLStatement &statement, Int_t dbType=-1) |
| void | Clear () |
Static Public Member Functions | |
| DbiExceptionLog & | GetGELog () |
Private Attributes | |
| std::vector< DbiException > | fEntries |
| The exception entries. | |
Static Private Attributes | |
| DbiExceptionLog | fgGELog |
| Global Exception Log. | |
DatabaseInterface
Contact: n.west1@physics.ox.ac.uk
Definition at line 44 of file DbiExceptionLog.h.
|
|
Definition at line 30 of file DbiExceptionLog.cxx. 00030 {
00031
00032 LEA_CTOR //Leak Checker
00033 MSG("Dbi", Msg::kVerbose) << "Creating DbiExceptionLog" << endl;
00034 if ( e ) this->AddEntry(*e);
00035
00036 }
|
|
|
Definition at line 40 of file DbiExceptionLog.cxx. 00040 {
00041
00042
00043 LEA_DTOR //Leak Checker
00044 MSG("Dbi", Msg::kVerbose) << "Destroying DbiExceptionLog" << endl;
00045
00046 }
|
|
||||||||||||
|
Definition at line 71 of file DbiExceptionLog.h. 00071 {
00072 this->AddEntry(DbiException(statement,dbType));}
|
|
||||||||||||
|
Definition at line 69 of file DbiExceptionLog.h. References server. 00069 {
00070 this->AddEntry(DbiException(server,dbType));}
|
|
||||||||||||||||
|
Definition at line 67 of file DbiExceptionLog.h. 00067 {
00068 this->AddEntry(DbiException(errMsg.c_str(),code,dbType));}
|
|
||||||||||||||||
|
Definition at line 65 of file DbiExceptionLog.h. 00065 {
00066 this->AddEntry(DbiException(errMsg,code,dbType));}
|
|
|
Definition at line 64 of file DbiExceptionLog.h. Referenced by AddLog(), Copy(), DbiConnection::CreatePreparedStatement(), DbiStatement::ExecuteQuery(), DbiAsciiTablePreparer::GET(), DbiAsciiTablePreparer::Init(), DbiConnection::Open(), and DbiConnection::RecordException(). 00064 { fEntries.push_back(e); }
|
|
|
Definition at line 71 of file DbiExceptionLog.cxx. References AddEntry(), and GetEntries(). Referenced by DbiStatement::PrintExceptions(). 00071 {
00072 //
00073 //
00074 // Purpose: Add all entries from el.
00075
00076 const std::vector<DbiException>& ve = el.GetEntries();
00077 std::vector<DbiException>::const_iterator itr(ve.begin()), itrEnd(ve.end());
00078 while ( itr != itrEnd ) this->AddEntry(*itr++);
00079
00080 }
|
|
|
Definition at line 73 of file DbiExceptionLog.h. Referenced by DbiResult::CaptureExceptionLog(). 00073 { fEntries.clear(); }
|
|
||||||||||||
|
Definition at line 84 of file DbiExceptionLog.cxx. References AddEntry(), and fEntries. Referenced by DbiResult::CaptureExceptionLog(). 00084 {
00085 //
00086 //
00087 // Purpose: Copy exception log starting at 'start' (default 0)
00088
00089 UInt_t maxEntry = fEntries.size();
00090 while (start <= maxEntry ) that.AddEntry(fEntries[start++]);
00091
00092 }
|
|
|
Definition at line 56 of file DbiExceptionLog.h. Referenced by AddLog(), and operator<<(). 00056 { return fEntries; }
|
|
|
Definition at line 76 of file DbiExceptionLog.h. Referenced by DbiResult::CaptureExceptionLog(), DbiStatement::PrintExceptions(), DbiTableProxy::Query(), and DbiTableProxyRegistry::~DbiTableProxyRegistry(). 00076 { return fgGELog;}
|
|
|
Definition at line 54 of file DbiExceptionLog.h. Referenced by DbiStatement::ExecuteQuery(), DbiStatement::ExecuteUpdate(), operator<<(), and DbiCascader::Lock::SetLock(). 00054 { return fEntries.size() == 0; }
|
|
|
Definition at line 95 of file DbiExceptionLog.cxx. Referenced by DbiTableProxyRegistry::~DbiTableProxyRegistry(). 00095 {
00096 //
00097 //
00098 // Purpose: Print contents to cout.
00099
00100 std::cout << *this << std::endl;
00101
00102 }
|
|
|
Definition at line 58 of file DbiExceptionLog.h. Referenced by DbiConnection::PrintExceptionLog(), DbiTableProxy::Query(), and DbiTableProxyRegistry::~DbiTableProxyRegistry(). 00058 { return fEntries.size(); }
|
|
|
The exception entries.
Definition at line 86 of file DbiExceptionLog.h. Referenced by Copy(). |
|
|
Global Exception Log.
Definition at line 21 of file DbiExceptionLog.cxx. |
1.3.9.1