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