Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Analysis/TGo4AnalysisStepException.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4AnalysisStepException.h"
00017 #include "Go4Analysis/TGo4AnalysisStep.h"
00018 
00019 TGo4AnalysisStepException::TGo4AnalysisStepException (TGo4AnalysisStep* step)
00020 : fxStep(0)
00021    {
00022    TRACE((14,"TGo4AnalysisStepException:TGo4AnalysisStepException (TGo4TaskHandler*)", __LINE__, __FILE__));
00023    fxDescription= "!!!-- Go4 Analysis Step Exception --!!!";
00024    if(step)
00025       {
00026          fxStep=step;
00027          fxStepName=fxStep->GetName();
00028          fxStatusMessage=fxStep->GetStatusMessage();
00029          fiProcessStatus=fxStep->GetProcessStatus();
00030       }
00031 }
00032 
00033 TGo4AnalysisStepException::~TGo4AnalysisStepException()
00034 {
00035  TRACE((14,"TGo4AnalysisStepException:~TGo4AnalysisStepException", __LINE__, __FILE__));
00036 
00037 }
00038 
00039 TGo4AnalysisStepException & TGo4AnalysisStepException::operator= (const TGo4AnalysisStepException & right)
00040 {
00041  TRACE((14,"TGo4AnalysisStepException:operator=",__LINE__, __FILE__));
00042  if (&right!=this)
00043     {
00044       TGo4RuntimeException::operator=(right); // copy base class members
00045       // put additional member copies here...
00046       fxStep=right.fxStep;
00047       fxStepName=right.fxStepName;
00048       fxStatusMessage=right.fxStatusMessage;
00049       fiProcessStatus=right.fiProcessStatus;
00050       return *this;
00051     }
00052   else
00053     {
00054       // copy is already source object
00055       return *this;
00056     }
00057 
00058 
00059 
00060 }
00061 TGo4AnalysisStepException::TGo4AnalysisStepException(const TGo4AnalysisStepException &right)
00062   :TGo4RuntimeException(right)
00063 {
00064   TRACE((14,"TGo4AnalysisStepException:TGo4AnalysisStepException(right)", __LINE__, __FILE__));   ;
00065   fxStep=right.fxStep;
00066   fxStepName=right.fxStepName;
00067   fxStatusMessage=right.fxStatusMessage;
00068   fiProcessStatus=right.fiProcessStatus;
00069 }
00070 
00071 Int_t TGo4AnalysisStepException::Handle()
00072 {
00073    TRACE((12,"TGo4AnalyisStepException::Handle()", __LINE__, __FILE__));
00074 
00075    TGo4Log::Error("%s \n Step %s, ProcessStatus:%d, %s",
00076             What(),GetStepName(),GetProcessStatus(),GetStatusMessage());
00077    return 0;
00078 }
00079 
00080 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:49 2005 for Go4-v2.10-5 by doxygen1.2.15