GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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;
25  fxEntryName = right.fxEntryName;
26  fxEntryClass = right.fxEntryClass;
28  }
29 
30  return *this;
31 }
32 
34 {
35  GO4TRACE((14, "TGo4DynamicListException:TGo4DynamicListException(right)", __LINE__, __FILE__));
36 
37  fxEntry = right.fxEntry;
38  fxEntryName = right.fxEntryName;
39  fxEntryClass = right.fxEntryClass;
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 }
TGo4DynamicListException(TGo4DynamicEntry *entry, const char *message)
const char * GetStatusMessage() const
virtual const char * What()
TGo4DynamicListException & operator=(const TGo4DynamicListException &right)
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
const char * GetEntryClass() const
const char * GetEntryName() const
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:25
void EnableProcessing(Bool_t on=kTRUE)
TString fxDescription
Definition: TGo4Exception.h:38