GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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();
26 fxStatusMessage = fxStep->GetStatusMessage();
27 fiProcessStatus = fxStep->GetProcessStatus();
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
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}
#define GO4TRACE(X)
Definition TGo4Log.h:25
TGo4AnalysisStepException & operator=(const TGo4AnalysisStepException &right)
Int_t fiProcessStatus
Contains current analysis step status value.
Int_t Handle() override
This is a default handler function for the respective exception type.
const char * GetStatusMessage() const
Status message of last Process() call.
const char * GetStepName() const
Name of the throwing analysis step.
TGo4AnalysisStepException(TGo4AnalysisStep *step)
Int_t GetProcessStatus() const
Status of the last event.
Contains a single step of the analysis.
virtual const char * What()
Returns string describing the kind of exception.
TString fxDescription
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
Definition TGo4Log.cxx:320
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)