GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventSourceException.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 
15 
16 #include "TGo4EventSource.h"
17 #include "TGo4Log.h"
18 
20 : fxEventSource(nullptr), fiCreateStatus(0), fiEventStatus(0)
21 {
22  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException (TGo4EventSource*)", __LINE__, __FILE__));
23  fxDescription= "!!!-- Go4 EventSource Exception --!!!";
24  if(eventsource) {
25  fxEventSource=eventsource;
26  fxErrMess=eventsource->GetErrMess();
27  fxSourceName=eventsource->GetName();
28  fxSourceClass=eventsource->ClassName();
29  fiCreateStatus=eventsource->GetCreateStatus();
30  fiEventStatus=eventsource->GetEventStatus();
31  }
32 }
33 
34 
36  :TGo4RuntimeException(right)
37 {
38  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException(right)", __LINE__, __FILE__)); ;
40  fxErrMess=right.fxErrMess;
45 }
46 
48 {
49  GO4TRACE((16, "TGo4EventSourceException::operator=", __LINE__, __FILE__));
50  if (&right != this) {
51  TGo4RuntimeException::operator=(right); // copy base class members
53  fxErrMess = right.fxErrMess;
54  fxSourceName = right.fxSourceName;
58  }
59  return *this;
60 }
61 
63 {
64  GO4TRACE((16,"TGo4EventSourceException::~TGo4EventSourceException", __LINE__, __FILE__));
65 }
66 
68 {
69  GO4TRACE((12,"TGo4EventSourceException::Handle()", __LINE__, __FILE__));
70 
71  TGo4Log::Debug("%s \n %s of name %s: \n\tCreateStatus: %d \n\tEventStatus:%d, \n\t%s",
72  What(),
75 
76  return 0;
77 }
78 
const char * GetErrMess() const
Int_t GetCreateStatus() const
virtual const char * What()
TGo4EventSourceException & operator=(const TGo4EventSourceException &right)
const char * GetSourceName() const
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:25
const char * GetSourceClass() const
TString fxDescription
Definition: TGo4Exception.h:38
Int_t GetEventStatus() const