00001 // $Id: TGo4TaskHandlerException.cxx 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 #include "TGo4TaskHandlerException.h" 00015 00016 #include "TGo4Log.h" 00017 #include "TGo4TaskHandler.h" 00018 #include "TGo4TaskHandlerRunnable.h" 00019 00020 TGo4TaskHandlerException::TGo4TaskHandlerException (TGo4TaskHandler* taskhandler) 00021 { 00022 fxDescription= "!!!-- Go4 TaskHandler Exception --!!!"; 00023 fxCaller=0; 00024 fxTaskHandler=taskhandler; 00025 if(fxTaskHandler) 00026 { 00027 // o.k. we have a given taskhandler 00028 fxThreadManager =fxTaskHandler->GetThreadManager(); 00029 } 00030 else 00031 { 00032 // wrong call with zero pointer: dummy init of manager, will be checked in Handle() 00033 fxThreadManager=0; 00034 } 00035 } 00036 00037 TGo4TaskHandlerException::TGo4TaskHandlerException(TGo4TaskHandlerRunnable* run) 00038 { 00039 fxDescription= "!!!-- Go4 TaskHandler Exception --!!!"; 00040 fxCaller=run; 00041 if(fxCaller) 00042 { 00043 fxTaskHandler=fxCaller->GetTaskHandler(); 00044 } 00045 else 00046 { 00047 fxTaskHandler=0; 00048 } 00049 00050 if(fxTaskHandler) 00051 { 00052 // o.k. we have a given taskhandler 00053 fxThreadManager =fxTaskHandler->GetThreadManager(); 00054 } 00055 else 00056 { 00057 // wrong call with zero pointer: dummy init of manager, will be checked in Handle() 00058 fxThreadManager=0; 00059 } 00060 } 00061 00062 TGo4TaskHandlerException::~TGo4TaskHandlerException() 00063 { 00064 }