GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ReplaceException Class Reference

Replace exception. More...

#include <TGo4ReplaceException.h>

+ Inheritance diagram for TGo4ReplaceException:

Public Member Functions

 TGo4ReplaceException ()=delete
 
 TGo4ReplaceException (const TGo4ReplaceException &right)
 
 TGo4ReplaceException (TGo4Runnable *runnable, TGo4Runnable *newrunnable=nullptr, const char *oldthreadname=nullptr)
 
virtual ~TGo4ReplaceException ()
 
Int_t Handle () override
 This is a default handler function for the respective exception type.
 
TGo4ReplaceExceptionoperator= (const TGo4ReplaceException &right)
 
- Public Member Functions inherited from TGo4ThreadException
 TGo4ThreadException ()=delete
 
 TGo4ThreadException (const TGo4ThreadException &right)
 
 TGo4ThreadException (TGo4Runnable *runnable, const char *threadname=nullptr)
 
virtual ~TGo4ThreadException ()
 
const char * GetThreadName () const
 
TGo4ThreadExceptionoperator= (const TGo4ThreadException &right)
 
- Public Member Functions inherited from TGo4ControlException
 TGo4ControlException ()
 
 TGo4ControlException (const TGo4ControlException &right)
 
virtual ~TGo4ControlException ()
 
TGo4ControlExceptionoperator= (const TGo4ControlException &right)
 
- Public Member Functions inherited from TGo4RuntimeException
 TGo4RuntimeException ()
 
 TGo4RuntimeException (const TGo4RuntimeException &right)
 
virtual ~TGo4RuntimeException ()
 
TGo4RuntimeExceptionoperator= (const TGo4RuntimeException &right)
 
- Public Member Functions inherited from TGo4Exception
 TGo4Exception ()
 
 TGo4Exception (const TGo4Exception &right)
 
virtual ~TGo4Exception ()
 
TGo4Exceptionoperator= (const TGo4Exception &right)
 
virtual const char * What ()
 Returns string describing the kind of exception.
 

Protected Attributes

TGo4RunnablefxNewRunnable {nullptr}
 
- Protected Attributes inherited from TGo4ThreadException
TGo4RunnablefxRunnable {nullptr}
 Link to the runnable connected with the thread (exception throwing runnable might simply pass its 'this' pointer as argument)
 
TGo4ThreadHandlerfxThreadHandler {nullptr}
 Link to threadhandler associated with the runnable.
 
TString fxThreadName
 Name of the TGo4Thread that shall be acted on.
 
- Protected Attributes inherited from TGo4Exception
TString fxDescription
 

Detailed Description

Replace exception.

Exception with the effect of removing old TGo4Thread from TGo4ThreadHandler and creating and starting new TGo4Thread with new runnable fxNewRunnable. If threadname is not specified in ctor, the thread of the first runnable given (usually the calling runnable) is replaced; if new runnable is not given, the thread of the calling runnable will be removed and a new thread with the calling runnable will be created, added to the handler list and started

Author
J. Adamczewski
Go4 project-DVEE-GSI Darmstadt
Germany
Version
0.9
Since
jul 2000-oct 2001

Definition at line 41 of file TGo4ReplaceException.h.

Constructor & Destructor Documentation

◆ TGo4ReplaceException() [1/3]

TGo4ReplaceException::TGo4ReplaceException ( )
delete

◆ TGo4ReplaceException() [2/3]

TGo4ReplaceException::TGo4ReplaceException ( const TGo4ReplaceException & right)

◆ TGo4ReplaceException() [3/3]

TGo4ReplaceException::TGo4ReplaceException ( TGo4Runnable * runnable,
TGo4Runnable * newrunnable = nullptr,
const char * oldthreadname = nullptr )

◆ ~TGo4ReplaceException()

TGo4ReplaceException::~TGo4ReplaceException ( )
virtual

Definition at line 46 of file TGo4ReplaceException.cxx.

References GO4TRACE.

Member Function Documentation

◆ Handle()

Int_t TGo4ReplaceException::Handle ( )
overridevirtual

This is a default handler function for the respective exception type.

Implements TGo4ThreadException.

Definition at line 62 of file TGo4ReplaceException.cxx.

References fxNewRunnable, TGo4ThreadException::fxRunnable, TGo4ThreadException::fxThreadHandler, TGo4ThreadException::GetThreadName(), and GO4TRACE.

◆ operator=()

TGo4ReplaceException & TGo4ReplaceException::operator= ( const TGo4ReplaceException & right)

Field Documentation

◆ fxNewRunnable

TGo4Runnable* TGo4ReplaceException::fxNewRunnable {nullptr}
protected

The documentation for this class was generated from the following files: