GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4EventSourceException.cxx
Go to the documentation of this file.
1 // $Id: TGo4EventSourceException.cxx 999 2013-07-25 11:58:59Z 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 
15 
16 #include "TGo4ControlException.h"
17 #include "TGo4EventSource.h"
18 #include "TGo4Log.h"
19 
21 : fxEventSource(0), fiCreateStatus(0), fiEventStatus(0)
22 {
23  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException (TGo4EventSource*)", __LINE__, __FILE__));
24  fxDescription= "!!!-- Go4 EventSource Exception --!!!";
25  if(eventsource)
26  {
27  fxEventSource=eventsource;
28  fxErrMess=eventsource->GetErrMess();
29  fxSourceName=eventsource->GetName();
30  fxSourceClass=eventsource->ClassName();
31  fiCreateStatus=eventsource->GetCreateStatus();
32  fiEventStatus=eventsource->GetEventStatus();
33  }
34 }
35 
36 
38  :TGo4RuntimeException(right)
39 {
40  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException(right)", __LINE__, __FILE__)); ;
42  fxErrMess=right.fxErrMess;
47 }
48 
50 {
51  GO4TRACE((16,"TGo4EventSourceException::operator=",__LINE__, __FILE__));
52  if (&right!=this)
53  {
54  TGo4RuntimeException::operator=(right); // copy base class members
55  // put additional member copies here...
57  fxErrMess=right.fxErrMess;
62  return *this;
63  }
64  else
65  {
66  // copy is already source object
67  return *this;
68  }
69 }
70 
72 {
73  GO4TRACE((16,"TGo4EventSourceException::~TGo4EventSourceException", __LINE__, __FILE__));
74 
75 }
76 
78 {
79  GO4TRACE((12,"TGo4EventSourceException::Handle()", __LINE__, __FILE__));
80 
81  TGo4Log::Debug("%s \n %s of name %s: \n\tCreateStatus: %d \n\tEventStatus:%d, \n\t%s",
82  What(),
85 
86  return 0;
87 }
88 
const char * GetErrMess() const
virtual const char * What()
const char * GetErrMess() const
TGo4EventSourceException & operator=(const TGo4EventSourceException &right)
Int_t GetCreateStatus() const
const char * GetSourceName() const
Int_t GetEventStatus() const
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:26
const char * GetSourceClass() const
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:270