GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4EventSourceException.h
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#ifndef TGO4EVENTSOURCEEXCEPTION_H
15#define TGO4EVENTSOURCEEXCEPTION_H
16
18#include "TString.h"
19
20class TGo4EventSource;
21
26
27 public:
28
30
32
34
35 Int_t Handle() override;
36
38
40
42 Int_t GetCreateStatus() const { return fiCreateStatus; }
43
45 Int_t GetEventStatus() const { return fiEventStatus; }
46
48 const char *GetErrMess() const { return fxErrMess.Data(); }
49
51 const char *GetSourceName() const { return fxSourceName.Data(); }
52
54 const char *GetSourceClass() const { return fxSourceClass.Data(); }
55
56 protected:
59
62
64 Int_t fiEventStatus{0};
65
67 TString fxErrMess;
68
70 TString fxSourceName;
71
73 TString fxSourceClass;
74
75};
76
77#endif
78
Int_t GetEventStatus() const
Status of the last event.
TString fxSourceName
Name of the throwing event source.
Int_t Handle() override
This is a default handler function for the respective exception type.
Int_t GetCreateStatus() const
Status value of server/file open.
TGo4EventSourceException & operator=(const TGo4EventSourceException &right)
const char * GetSourceClass() const
Name of the throwing event source.
const char * GetSourceName() const
Name of the throwing event source.
const char * GetErrMess() const
Status/ error message of the last event.
Int_t fiEventStatus
Contains return value of eventsource getevent (e.g.
TString fxErrMess
Error message at exception throw time.
Int_t fiCreateStatus
Contains return value of eventsource open (e.g.
TString fxSourceClass
Class of the throwing event source.