Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Exceptions/TGo4Exception.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
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       // copy is already source object
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 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:55 2005 for Go4-v2.10-5 by doxygen1.2.15