GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4AnalysisStepException.cxx
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 
15 
16 #include "TGo4Log.h"
17 #include "TGo4AnalysisStep.h"
18 
20 {
21  GO4TRACE((14, "TGo4AnalysisStepException:TGo4AnalysisStepException (TGo4TaskHandler *)", __LINE__, __FILE__));
22  fxDescription = "!!!-- Go4 Analysis Step Exception --!!!";
23  if (step) {
24  fxStep = step;
25  fxStepName = fxStep->GetName();
28  }
29 }
30 
32 {
33  GO4TRACE((14, "TGo4AnalysisStepException:~TGo4AnalysisStepException", __LINE__, __FILE__));
34 }
35 
37 {
38  GO4TRACE((14, "TGo4AnalysisStepException:operator=", __LINE__, __FILE__));
39  if (&right != this) {
40  TGo4RuntimeException::operator=(right); // copy base class members
41  fxStep = right.fxStep;
42  fxStepName = right.fxStepName;
45  }
46  return *this;
47 }
48 
50  : TGo4RuntimeException(right)
51 {
52  GO4TRACE((14, "TGo4AnalysisStepException:TGo4AnalysisStepException(right)", __LINE__, __FILE__));
53 
54  fxStep = right.fxStep;
55  fxStepName = right.fxStepName;
58 }
59 
61 {
62  GO4TRACE((12, "TGo4AnalyisStepException::Handle()", __LINE__, __FILE__));
63 
64  TGo4Log::Error("%s \n Step %s, ProcessStatus:%d, %s", What(), GetStepName(), GetProcessStatus(), GetStatusMessage());
65  return 0;
66 }
virtual const char * What()
Int_t GetProcessStatus() const
const char * GetStatusMessage() const
static void Error(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:320
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:25
TGo4AnalysisStepException & operator=(const TGo4AnalysisStepException &right)
const char * GetStatusMessage() const
TGo4AnalysisStepException(TGo4AnalysisStep *step)
TString fxDescription
Definition: TGo4Exception.h:38