GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4DynamicListException.cxx
Go to the documentation of this file.
1 // $Id: TGo4DynamicListException.cxx 2627 2019-10-01 08:02:45Z linev $
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  // put additional member copies here...
25  fxEntry = right.fxEntry;
26  fxEntryName = right.fxEntryName;
27  fxEntryClass = right.fxEntryClass;
29  return *this;
30  } else {
31  // copy is already source object
32  return *this;
33  }
34 }
35 
37 {
38  GO4TRACE((14, "TGo4DynamicListException:TGo4DynamicListException(right)", __LINE__, __FILE__));
39 
40  fxEntry = right.fxEntry;
41  fxEntryName = right.fxEntryName;
42  fxEntryClass = right.fxEntryClass;
44 }
45 
47 {
48  GO4TRACE((12, "TGo4AnalyisStepException::Handle()", __LINE__, __FILE__));
49 
50  TGo4Log::Debug("%s \n Entry %s:%s, %s\n \t--Entry was disabled.", What(), GetEntryClass(), GetEntryName(),
52  if (fxEntry)
53  fxEntry->EnableProcessing(kFALSE);
54  return 0;
55 }
56 
58 {
59  GO4TRACE((14, "TGo4DynamicListException:TGo4DynamicListException (TGo4DynamicEntry*,..)", __LINE__, __FILE__));
60  fxDescription = "!!!-- Go4 Dynamic List Exception --!!!";
61 
62  fxEntry = entry;
63  if (fxEntry) {
64  fxEntryName = fxEntry->GetName();
65  fxEntryClass = fxEntry->ClassName();
66  }
67  fxStatusMessage = message;
68 }
TGo4DynamicListException(TGo4DynamicEntry *entry, const char *message)
const char * GetStatusMessage() const
virtual const char * What()
TGo4DynamicListException & operator=(const TGo4DynamicListException &right)
const char * GetEntryClass() const
const char * GetEntryName() const
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:26
void EnableProcessing(Bool_t on=kTRUE)
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:274