GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventStoreException.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 "TGo4EventStore.h"
17 #include "TGo4Log.h"
18 
20 : fxEventStore(nullptr)
21 {
22  GO4TRACE((16,"TGo4EventStoreException::TGo4EventStoreException (TGo4EventStore *)", __LINE__, __FILE__));
23  fxDescription = "!!!-- Go4 EventStore Exception --!!!";
24  if (eventstore) {
25  fxEventStore = eventstore;
26  fxStoreName = eventstore->GetName();
27  fxStoreClass = eventstore->ClassName();
28  }
29  if (msg)
30  fxErrMess = msg;
31 }
32 
33 
35  :TGo4RuntimeException(right)
36 {
37  GO4TRACE((16,"TGo4EventStoreException::TGo4EventStoreException(right)", __LINE__, __FILE__)); ;
39  fxErrMess=right.fxErrMess;
42 }
43 
45 {
46  GO4TRACE((16, "TGo4EventStoreException::operator=", __LINE__, __FILE__));
47  if (&right != this) {
48  TGo4RuntimeException::operator=(right); // copy base class members
49  fxEventStore = right.fxEventStore;
50  fxErrMess = right.fxErrMess;
51  fxStoreName = right.fxStoreName;
52  fxStoreClass = right.fxStoreClass;
53  }
54  return *this;
55 }
56 
58 {
59  GO4TRACE((16,"TGo4EventStoreException::~TGo4EventStoreException", __LINE__, __FILE__));
60 }
61 
63 {
64  GO4TRACE((12,"TGo4EventStoreException::Handle()", __LINE__, __FILE__));
65 
66  TGo4Log::Debug("%s \n %s of name %s:\n\t%s",
67  What(),
69  ,GetErrMess());
70 
71  return 0;
72 }
73 
TGo4EventStoreException & operator=(const TGo4EventStoreException &right)
virtual const char * What()
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
#define GO4TRACE(X)
Definition: TGo4Log.h:25
const char * GetStoreName() const
const char * GetStoreClass() const
TGo4EventStoreException()=delete
TString fxDescription
Definition: TGo4Exception.h:38
const char * GetErrMess() const
string msg
Definition: go4init.py:11