Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4Exception.cxx

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE 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 
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       // copy is already source object
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 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:11 2008 for Go4-v3.04-1 by  doxygen 1.4.2