EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairDbException.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairDbException.h
1
#ifndef FAIRDBEXCEPTION
2
#define FAIRDBEXCEPTION
3
4
5
#include <iosfwd>
6
#include <string>
7
#include "Rtypes.h"
8
9
class
FairDbException
;
10
class
TSQLServer;
11
class
TSQLStatement;
12
13
class
ostreamx;
14
15
std::ostream&
operator<<
(std::ostream&
s
,
const
FairDbException
&
e
);
16
17
class
FairDbException
18
19
{
20
21
public
:
22
FairDbException
(
const
char
* msg = 0, Int_t code = -1, Int_t dbType = -1 );
23
FairDbException
(
const
TSQLServer& server,Int_t dbType = -1);
24
FairDbException
(
const
TSQLStatement& statement,Int_t dbType = -1);
25
FairDbException
(
const
FairDbException
& that);
26
virtual
~FairDbException
();
27
28
// State testing member functions
29
30
const
std::string&
GetMessage
()
const
{
return
fMessage
; }
31
Int_t
GetErrorCode
()
const
{
return
fErrorCode
; }
32
Int_t
GetDbType
()
const
{
return
fDbType
; }
33
34
private
:
35
36
37
// Data members
38
39
private
:
40
42
std::string
fMessage
;
43
45
Int_t
fErrorCode
;
46
48
Int_t
fDbType
;
49
50
51
ClassDef(
FairDbException
,0)
// Object to hold a single database exception record.
52
53
};
54
55
#endif // FAIRDBEXCEPTIONLOG
EicRoot
blob
master
dbase
dbInterface
FairDbException.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration