GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4EventSourceException.cxx
Go to the documentation of this file.
1 // $Id: TGo4EventSourceException.cxx 2748 2020-04-16 09:50:56Z 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 
15 
16 #include "TGo4EventSource.h"
17 #include "TGo4Log.h"
18 
20 : fxEventSource(0), fiCreateStatus(0), fiEventStatus(0)
21 {
22  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException (TGo4EventSource*)", __LINE__, __FILE__));
23  fxDescription= "!!!-- Go4 EventSource Exception --!!!";
24  if(eventsource)
25  {
26  fxEventSource=eventsource;
27  fxErrMess=eventsource->GetErrMess();
28  fxSourceName=eventsource->GetName();
29  fxSourceClass=eventsource->ClassName();
30  fiCreateStatus=eventsource->GetCreateStatus();
31  fiEventStatus=eventsource->GetEventStatus();
32  }
33 }
34 
35 
37  :TGo4RuntimeException(right)
38 {
39  GO4TRACE((16,"TGo4EventSourceException::TGo4EventSourceException(right)", __LINE__, __FILE__)); ;
41  fxErrMess=right.fxErrMess;
46 }
47 
49 {
50  GO4TRACE((16,"TGo4EventSourceException::operator=",__LINE__, __FILE__));
51  if (&right!=this)
52  {
53  TGo4RuntimeException::operator=(right); // copy base class members
54  // put additional member copies here...
56  fxErrMess=right.fxErrMess;
61  return *this;
62  }
63  else
64  {
65  // copy is already source object
66  return *this;
67  }
68 }
69 
71 {
72  GO4TRACE((16,"TGo4EventSourceException::~TGo4EventSourceException", __LINE__, __FILE__));
73 
74 }
75 
77 {
78  GO4TRACE((12,"TGo4EventSourceException::Handle()", __LINE__, __FILE__));
79 
80  TGo4Log::Debug("%s \n %s of name %s: \n\tCreateStatus: %d \n\tEventStatus:%d, \n\t%s",
81  What(),
84 
85  return 0;
86 }
87 
const char * GetErrMess() const
TGo4EventSourceException(TGo4EventSource *eventsource)
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:274