00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "TGo4Exception.h"
00017
00018 #include "TGo4Log.h"
00019
00020 TGo4Exception::TGo4Exception()
00021 :fxDescription("!!!-- Go4 General Exception --!!!")
00022 {
00023 TRACE((14,"TGo4Exception::TGo4Exception() constructor",__LINE__, __FILE__));
00024 }
00025
00026 TGo4Exception::TGo4Exception(const TGo4Exception &right)
00027 {
00028 TRACE((14,"TGo4Exception::TGo4Exception() copy constructor",__LINE__, __FILE__));
00029 fxDescription=right.fxDescription;
00030 }
00031
00032
00033 TGo4Exception::~TGo4Exception()
00034 {
00035 TRACE((14,"TGo4Exception::TGo4Exception() destructor",__LINE__, __FILE__));
00036 }
00037
00038
00039 TGo4Exception & TGo4Exception::operator=(const TGo4Exception &right)
00040 {
00041 TRACE((14,"TGo4Exception::operator=",__LINE__, __FILE__));
00042 if (&right!=this)
00043 {
00044 TRACE((13,"TGo4Exception::operator= processing copy",__LINE__, __FILE__));
00045 fxDescription=right.fxDescription;
00046 return *this;
00047 }
00048 else
00049 {
00050
00051 TRACE((13,"TGo4Exception::operator= source and destination objects are identical",__LINE__, __FILE__));
00052 return *this;
00053 }
00054 }
00055
00056 const char* TGo4Exception::What ()
00057 {
00058 TRACE((14,"TGo4Exception::What()",__LINE__, __FILE__));
00059 return fxDescription.Data();
00060 }
00061
00062 Int_t TGo4Exception::Handle ()
00063 {
00064 TRACE((14,"TGo4Exception::Handle()",__LINE__, __FILE__));
00065
00066 TGo4Log::Debug(" %s was thrown! ",What());
00067 return 0;
00068 }
00069
00070