GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
Go4Exceptions
TGo4Exception.cxx
Go to the documentation of this file.
1
// $Id$
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
#include "
TGo4Exception.h
"
15
16
#include "
TGo4Log.h
"
17
18
TGo4Exception::TGo4Exception
() : fxDescription(
"!!!-- Go4 General Exception --!!!"
)
19
{
20
GO4TRACE
((14,
"TGo4Exception::TGo4Exception() constructor"
, __LINE__, __FILE__));
21
}
22
23
TGo4Exception::TGo4Exception
(
const
TGo4Exception
&right)
24
{
25
GO4TRACE
((14,
"TGo4Exception::TGo4Exception() copy constructor"
,__LINE__, __FILE__));
26
fxDescription
=right.
fxDescription
;
27
}
28
29
TGo4Exception::~TGo4Exception
()
30
{
31
GO4TRACE
((14,
"TGo4Exception::TGo4Exception() destructor"
,__LINE__, __FILE__));
32
}
33
34
TGo4Exception
&
TGo4Exception::operator=
(
const
TGo4Exception
&right)
35
{
36
GO4TRACE
((14,
"TGo4Exception::operator="
, __LINE__, __FILE__));
37
if
(&right !=
this
)
38
fxDescription
= right.
fxDescription
;
39
return
*
this
;
40
}
41
42
const
char
*
TGo4Exception::What
()
43
{
44
GO4TRACE
((14,
"TGo4Exception::What()"
,__LINE__, __FILE__));
45
return
fxDescription
.Data();
46
}
47
48
Int_t
TGo4Exception::Handle
()
49
{
50
GO4TRACE
((14,
"TGo4Exception::Handle()"
,__LINE__, __FILE__));
51
52
TGo4Log::Debug
(
" %s was thrown! "
,
What
());
53
return
0;
54
}
TGo4Exception::~TGo4Exception
virtual ~TGo4Exception()
Definition:
TGo4Exception.cxx:29
TGo4Exception::TGo4Exception
TGo4Exception()
Definition:
TGo4Exception.cxx:18
TGo4Exception::What
virtual const char * What()
Definition:
TGo4Exception.cxx:42
TGo4Log.h
TGo4Exception.h
TGo4Log::Debug
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition:
TGo4Log.cxx:281
TGo4Exception::operator=
TGo4Exception & operator=(const TGo4Exception &right)
Definition:
TGo4Exception.cxx:34
TGo4Exception::Handle
virtual Int_t Handle()
Definition:
TGo4Exception.cxx:48
GO4TRACE
#define GO4TRACE(X)
Definition:
TGo4Log.h:25
TGo4Exception::fxDescription
TString fxDescription
Definition:
TGo4Exception.h:38
TGo4Exception
Definition:
TGo4Exception.h:20
Generated on Wed Jan 10 2024 15:04:17 for GSI Object Oriented Online Offline (Go4) by
1.8.13