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 "TGo4RuntimeException.h" 00017 00018 #include "TApplication.h" 00019 00020 #include "TGo4Log.h" 00021 00022 TGo4RuntimeException::TGo4RuntimeException() 00023 { 00024 fxDescription= "!!!-- Go4 Runtime Exception --!!!"; 00025 } 00026 00027 TGo4RuntimeException::~TGo4RuntimeException() 00028 { 00029 } 00030 00031 TGo4RuntimeException::TGo4RuntimeException(const TGo4RuntimeException &right) 00032 :TGo4Exception(right) 00033 { 00034 } 00035 00036 Int_t TGo4RuntimeException::Handle() 00037 { 00038 00039 TGo4Exception::Handle(); // superclass handler: output of exception 00040 TGo4Log::Debug("\n !!! Unspecified Runtime Exception, aborting application !!! \n"); 00041 gApplication->Terminate(0); 00042 return 0; 00043 } 00044 00045 TGo4RuntimeException & TGo4RuntimeException::operator=(const TGo4RuntimeException &right) 00046 { 00047 if (&right!=this) 00048 { 00049 TGo4Exception::operator=(right); // copy base class members 00050 // put additional member copies here... 00051 return *this; 00052 } 00053 else 00054 { 00055 // copy is already source object 00056 return *this; 00057 } 00058 } 00059 00060 00061 //----------------------------END OF GO4 SOURCE FILE ---------------------