00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 "TGo4RuntimeException.h" 00020 00021 #include "TString.h" 00022 00029 class TGo4UserException : public TGo4RuntimeException { 00030 00031 public: 00032 00033 TGo4UserException (Int_t prio, const char* text,...); 00034 00035 virtual ~TGo4UserException(); 00036 00037 Int_t Handle (); 00038 00039 TGo4UserException(const TGo4UserException &right); 00040 00041 TGo4UserException & operator = (const TGo4UserException & right); 00042 00044 Int_t GetPriority() const { return fiPriority; } 00045 00047 const char* GetMessage() const { return fxMessage.Data(); } 00048 00049 protected: 00050 00052 TString fxMessage; 00053 00055 Int_t fiPriority; 00056 00057 private: 00058 TGo4UserException(); 00059 }; 00060 00061 #endif // #define 00062 00063 //----------------------------END OF GO4 SOURCE FILE ---------------------