GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4DynamicListException.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 "TGo4DynamicEntry.h"
18
20{
21 GO4TRACE((14, "TGo4DynamicListException:operator=", __LINE__, __FILE__));
22 if (&right != this) {
23 TGo4RuntimeException::operator=(right); // copy base class members
24 fxEntry = right.fxEntry;
28 }
29
30 return *this;
31}
32
34{
35 GO4TRACE((14, "TGo4DynamicListException:TGo4DynamicListException(right)", __LINE__, __FILE__));
36
37 fxEntry = right.fxEntry;
41}
42
44{
45 GO4TRACE((12, "TGo4AnalyisStepException::Handle()", __LINE__, __FILE__));
46
47 TGo4Log::Debug("%s \n Entry %s:%s, %s\n \t--Entry was disabled.", What(), GetEntryClass(), GetEntryName(),
49 if (fxEntry)
50 fxEntry->EnableProcessing(kFALSE);
51 return 0;
52}
53
55{
56 GO4TRACE((14, "TGo4DynamicListException:TGo4DynamicListException (TGo4DynamicEntry *,..)", __LINE__, __FILE__));
57 fxDescription = "!!!-- Go4 Dynamic List Exception --!!!";
58
59 fxEntry = entry;
60 if (fxEntry) {
61 fxEntryName = fxEntry->GetName();
62 fxEntryClass = fxEntry->ClassName();
63 }
64 fxStatusMessage = message;
65}
#define GO4TRACE(X)
Definition TGo4Log.h:25
ABC for all entries that can be kept in a dynamic list.
TGo4DynamicListException & operator=(const TGo4DynamicListException &right)
const char * GetEntryName() const
Name of the throwing dynamic Entry.
TGo4DynamicListException(TGo4DynamicEntry *entry, const char *message)
const char * GetEntryClass() const
Classname of the throwing dynamic entry.
const char * GetStatusMessage() const
Status message of last Process() call.
Int_t Handle() override
This is a default handler function for the respective exception type.
virtual const char * What()
Returns string describing the kind of exception.
TString fxDescription
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition TGo4Log.cxx:281
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)