00001 // $Id: TGo4ThreadException.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 TGo4ThreadException_h 00015 #define TGo4ThreadException_h 00016 00017 #include "TGo4ControlException.h" 00018 #include "TString.h" 00019 00020 class TGo4Runnable; 00021 class TGo4ThreadHandler; 00022 00031 class TGo4ThreadException : public TGo4ControlException { 00032 public: 00033 TGo4ThreadException(const TGo4ThreadException &right); 00034 00035 TGo4ThreadException (TGo4Runnable* runnable, const char* threadname = 0); 00036 00037 virtual ~TGo4ThreadException(); 00038 00039 TGo4ThreadException & operator=(const TGo4ThreadException &right); 00040 00042 virtual Int_t Handle () = 0; 00043 00044 const char* GetThreadName (); 00045 00046 protected: 00048 TString fxThreadName; 00049 00052 TGo4Runnable *fxRunnable; 00053 00055 TGo4ThreadHandler *fxThreadHandler; 00056 00057 private: 00058 TGo4ThreadException(); 00059 }; 00060 00061 #endif