00001 // $Id: TGo4EventSourceException.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4EVENTSOURCEEXCEPTION_H 00015 #define TGO4EVENTSOURCEEXCEPTION_H 00016 00017 #include "TGo4RuntimeException.h" 00018 #include "TString.h" 00019 00020 class TGo4EventSource; 00021 00022 class TGo4EventSourceException : public TGo4RuntimeException { 00023 00024 public: 00025 00026 TGo4EventSourceException (TGo4EventSource* eventsource); 00027 00028 virtual ~TGo4EventSourceException(); 00029 00030 virtual Int_t Handle(); 00031 00032 TGo4EventSourceException(const TGo4EventSourceException &right); 00033 00034 TGo4EventSourceException & operator = (const TGo4EventSourceException & right); 00035 00037 Int_t GetCreateStatus() const { return fiCreateStatus; } 00038 00040 Int_t GetEventStatus() const { return fiEventStatus; } 00041 00043 const char* GetErrMess() const { return fxErrMess.Data(); } 00044 00046 const char* GetSourceName() const { return fxSourceName.Data(); } 00047 00049 const char* GetSourceClass() const { return fxSourceClass.Data(); } 00050 00051 protected: 00053 TGo4EventSource * fxEventSource; 00054 00056 Int_t fiCreateStatus; 00057 00059 Int_t fiEventStatus; 00060 00062 TString fxErrMess; 00063 00065 TString fxSourceName; 00066 00068 TString fxSourceClass; 00069 00070 private: 00071 TGo4EventSourceException(); 00072 }; 00073 00074 #endif // #define TGO4TASKHANDLEREXCEPTION_H 00075 00076 00077