00001 // $Id: TGo4RuntimeException.cxx 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "TGo4RuntimeException.h" 00015 00016 #include "TApplication.h" 00017 00018 #include "TGo4Log.h" 00019 00020 TGo4RuntimeException::TGo4RuntimeException() 00021 { 00022 fxDescription= "!!!-- Go4 Runtime Exception --!!!"; 00023 } 00024 00025 TGo4RuntimeException::~TGo4RuntimeException() 00026 { 00027 } 00028 00029 TGo4RuntimeException::TGo4RuntimeException(const TGo4RuntimeException &right) 00030 :TGo4Exception(right) 00031 { 00032 } 00033 00034 Int_t TGo4RuntimeException::Handle() 00035 { 00036 00037 TGo4Exception::Handle(); // superclass handler: output of exception 00038 TGo4Log::Debug("\n !!! Unspecified Runtime Exception, aborting application !!! \n"); 00039 gApplication->Terminate(0); 00040 return 0; 00041 } 00042 00043 TGo4RuntimeException & TGo4RuntimeException::operator=(const TGo4RuntimeException &right) 00044 { 00045 if (&right!=this) 00046 { 00047 TGo4Exception::operator=(right); // copy base class members 00048 // put additional member copies here... 00049 return *this; 00050 } 00051 else 00052 { 00053 // copy is already source object 00054 return *this; 00055 } 00056 } 00057