GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4Exception.cxx
Go to the documentation of this file.
1 // $Id: TGo4Exception.cxx 999 2013-07-25 11:58:59Z linev $
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 für 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 
19  :fxDescription("!!!-- Go4 General Exception --!!!")
20 {
21  GO4TRACE((14,"TGo4Exception::TGo4Exception() constructor",__LINE__, __FILE__));
22 }
23 
25 {
26  GO4TRACE((14,"TGo4Exception::TGo4Exception() copy constructor",__LINE__, __FILE__));
28 }
29 
30 
32 {
33  GO4TRACE((14,"TGo4Exception::TGo4Exception() destructor",__LINE__, __FILE__));
34 }
35 
36 
38 {
39  GO4TRACE((14,"TGo4Exception::operator=",__LINE__, __FILE__));
40  if (&right!=this)
41  {
42  GO4TRACE((13,"TGo4Exception::operator= processing copy",__LINE__, __FILE__));
44  return *this;
45  }
46  else
47  {
48  // copy is already source object
49  GO4TRACE((13,"TGo4Exception::operator= source and destination objects are identical",__LINE__, __FILE__));
50  return *this;
51  }
52 }
53 
54 const char* TGo4Exception::What ()
55 {
56  GO4TRACE((14,"TGo4Exception::What()",__LINE__, __FILE__));
57  return fxDescription.Data();
58 }
59 
61 {
62  GO4TRACE((14,"TGo4Exception::Handle()",__LINE__, __FILE__));
63 
64  TGo4Log::Debug(" %s was thrown! ",What());
65  return 0;
66 }
virtual ~TGo4Exception()
virtual const char * What()
TGo4Exception & operator=(const TGo4Exception &right)
virtual Int_t Handle()
#define GO4TRACE(X)
Definition: TGo4Log.h:26
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:270