GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4RuntimeException.cxx
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4RuntimeException.h"
15 
16 #include "TApplication.h"
17 
18 #include "TGo4Log.h"
19 
21 {
22  fxDescription= "!!!-- Go4 Runtime Exception --!!!";
23 }
24 
26 {
27 }
28 
30  :TGo4Exception(right)
31 {
32 }
33 
35 {
36  TGo4Exception::Handle(); // superclass handler: output of exception
37  TGo4Log::Debug("\n !!! Unspecified Runtime Exception, aborting application !!! \n");
38  gApplication->Terminate(0);
39  return 0;
40 }
41 
43 {
44  if (&right != this)
45  TGo4Exception::operator=(right); // copy base class members
46 
47  return *this;
48 }
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
TGo4Exception & operator=(const TGo4Exception &right)
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
virtual Int_t Handle()
TString fxDescription
Definition: TGo4Exception.h:38