00001 // $Id: TGo4ThreadException.h 1196 2014-04-10 14:06:24Z 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 00030 class TGo4ThreadException : public TGo4ControlException { 00031 public: 00032 TGo4ThreadException(const TGo4ThreadException &right); 00033 00034 TGo4ThreadException (TGo4Runnable* runnable, const char* threadname = 0); 00035 00036 virtual ~TGo4ThreadException(); 00037 00038 TGo4ThreadException & operator=(const TGo4ThreadException &right); 00039 00041 virtual Int_t Handle () = 0; 00042 00043 const char* GetThreadName (); 00044 00045 protected: 00047 TString fxThreadName; 00048 00051 TGo4Runnable *fxRunnable; 00052 00054 TGo4ThreadHandler *fxThreadHandler; 00055 00056 private: 00057 TGo4ThreadException(); 00058 }; 00059 00060 #endif