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