GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4DynamicListException.cxx
Go to the documentation of this file.
1 // $Id: TGo4DynamicListException.cxx 999 2013-07-25 11:58:59Z 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 für 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 "snprintf.h"
17 
18 #include "TGo4Log.h"
19 #include "TGo4DynamicEntry.h"
20 
22 {
23  GO4TRACE((14,"TGo4DynamicListException:operator=",__LINE__, __FILE__));
24  if (&right!=this)
25  {
26  TGo4RuntimeException::operator=(right); // copy base class members
27  // put additional member copies here...
28  fxEntry=right.fxEntry;
32  return *this;
33  }
34  else
35  {
36  // copy is already source object
37  return *this;
38  }
39 }
40 
42  :TGo4RuntimeException(right)
43 {
44  GO4TRACE((14,"TGo4DynamicListException:TGo4DynamicListException(right)", __LINE__, __FILE__)); ;
45  fxEntry=right.fxEntry;
49 
50 }
51 
53 {
54  GO4TRACE((12,"TGo4AnalyisStepException::Handle()", __LINE__, __FILE__));
55 
56 
57  TGo4Log::Debug("%s \n Entry %s:%s, %s\n \t--Entry was disabled.",
59  if(fxEntry)
60  fxEntry->EnableProcessing(kFALSE);
61  return 0;
62 }
64 {
65  GO4TRACE((14,"TGo4DynamicListException:~TGo4DynamicListException", __LINE__, __FILE__));
66 
67 }
69 : fxEntry(0)
70  {
71  GO4TRACE((14,"TGo4DynamicListException:TGo4DynamicListException (TGo4DynamicEntry*,..)", __LINE__, __FILE__));
72  fxDescription= "!!!-- Go4 Dynamic List Exception --!!!";
73  if(entry)
74  {
75  fxEntry=entry;
76  fxEntryName=fxEntry->GetName();
77  fxEntryClass=fxEntry->ClassName();
78 
79  }
80  UInt_t lbuflen=256;
81  char txtbuf[256];
82  va_list args;
83  va_start(args, message);
84  vsnprintf(txtbuf, lbuflen, message, args);
85  va_end(args);
86  fxStatusMessage=txtbuf;
87 }
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:270