GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ControlException.cxx
Go to the documentation of this file.
1 // $Id: TGo4ControlException.cxx 2627 2019-10-01 08:02:45Z 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 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  {
44  GO4TRACE((13,"TGo4ControlException::operator= processing copy",__LINE__, __FILE__));
45  TGo4RuntimeException::operator=(right); // copy base class members
46  // put additional member copies here...
47  return *this;
48  }
49  else
50  {
51  // copy is already source object
52  GO4TRACE((13,"TGo4ControlException::operator= source and destination objects are identical",__LINE__, __FILE__));
53  return *this;
54  }
55 }
56 
58 {
59  GO4TRACE((14,"TGo4ControlException::Handle()",__LINE__, __FILE__));
60 
61  TGo4Exception::Handle(); // superclass handler: output of exception
62  TGo4Log::Debug("\n !!! Unspecified Control Exception, aborting application !!! \n");
63  gApplication->Terminate(0);
64  return 0;
65 }
66 
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
virtual Int_t Handle()
#define GO4TRACE(X)
Definition: TGo4Log.h:26
TGo4ControlException & operator=(const TGo4ControlException &right)
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:284