00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4USEREXCEPTION_H 00017 #define TGO4USEREXCEPTION_H 00018 00019 #include "Go4Exceptions/TGo4RuntimeException.h" 00020 #include "TString.h" 00021 00028 class TGo4UserException : public TGo4RuntimeException { 00029 00030 public: 00031 00032 TGo4UserException (Int_t prio, const Text_t* text,...); 00033 00034 virtual ~TGo4UserException(); 00035 00036 Int_t Handle (); 00037 00038 TGo4UserException(const TGo4UserException &right); 00039 00040 TGo4UserException & operator = (const TGo4UserException & right); 00041 00043 Int_t GetPriority() const { return fiPriority; } 00044 00046 const char* GetMessage() const { return fxMessage.Data(); } 00047 00048 protected: 00049 00051 TString fxMessage; 00052 00054 Int_t fiPriority; 00055 00056 private: 00057 TGo4UserException(); 00058 }; 00059 00060 #endif // #define 00061 00062 //----------------------------END OF GO4 SOURCE FILE ---------------------