GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4RuntimeException.cxx
Go to the documentation of this file.
1 // $Id: TGo4RuntimeException.cxx 478 2009-10-29 12:26:09Z linev $
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 für 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 
37  TGo4Exception::Handle(); // superclass handler: output of exception
38  TGo4Log::Debug("\n !!! Unspecified Runtime Exception, aborting application !!! \n");
39  gApplication->Terminate(0);
40  return 0;
41 }
42 
44 {
45  if (&right!=this)
46  {
47  TGo4Exception::operator=(right); // copy base class members
48  // put additional member copies here...
49  return *this;
50  }
51  else
52  {
53  // copy is already source object
54  return *this;
55  }
56 }
57 
TGo4Exception & operator=(const TGo4Exception &right)
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
virtual Int_t Handle()
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:270