GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ThreadException.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGo4ThreadException_h
15#define TGo4ThreadException_h
16
18#include "TString.h"
19
20class TGo4Runnable;
22
32 public:
34
36
37 TGo4ThreadException (TGo4Runnable *runnable, const char *threadname = nullptr);
38
39 virtual ~TGo4ThreadException();
40
42
44 Int_t Handle() override = 0;
45
46 const char *GetThreadName() const;
47
48 protected:
50 TString fxThreadName;
51
55
58
59};
60
61#endif
Base class for all go4 runnables.
TGo4ThreadException()=delete
TGo4Runnable * fxRunnable
Link to the runnable connected with the thread (exception throwing runnable might simply pass its 'th...
TString fxThreadName
Name of the TGo4Thread that shall be acted on.
const char * GetThreadName() const
TGo4ThreadException & operator=(const TGo4ThreadException &right)
TGo4ThreadHandler * fxThreadHandler
Link to threadhandler associated with the runnable.
Int_t Handle() override=0
This is a default handler function for the respective exception type.
Go4 thread handler.