GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4ControlException.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 "TGo4ControlException.h"
15 
16 #include "TApplication.h"
17 
18 #include "TGo4Log.h"
19 
21 {
22  GO4TRACE((14,"TGo4ControlException::TGo4ControlException() constructor",__LINE__, __FILE__));
23  fxDescription= "!!!-- Go4 Control Exception --!!!";
24 }
25 
27  :TGo4RuntimeException(right)
28 {
29  GO4TRACE((14,"TGo4ControlException::TGo4ControlException() copy constructor",__LINE__, __FILE__));
30 }
31 
32 
34 {
35  GO4TRACE((14,"TGo4ControlException::~TGo4ControlException() destructor",__LINE__, __FILE__));
36 }
37 
38 
40 {
41  GO4TRACE((14, "TGo4ControlException::operator=", __LINE__, __FILE__));
42  if (&right != this)
43  TGo4RuntimeException::operator=(right); // copy base class members
44  return *this;
45 }
46 
48 {
49  GO4TRACE((14,"TGo4ControlException::Handle()",__LINE__, __FILE__));
50 
51  TGo4Exception::Handle(); // superclass handler: output of exception
52  TGo4Log::Debug("\n !!! Unspecified Control Exception, aborting application !!! \n");
53  gApplication->Terminate(0);
54  return 0;
55 }
56 
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
virtual Int_t Handle()
#define GO4TRACE(X)
Definition: TGo4Log.h:25
TGo4ControlException & operator=(const TGo4ControlException &right)
TString fxDescription
Definition: TGo4Exception.h:38