GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4EventStoreException.cxx
Go to the documentation of this file.
1 // $Id: TGo4EventStoreException.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 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(0)
21 {
22  GO4TRACE((16,"TGo4EventStoreException::TGo4EventStoreException (TGo4EventStore*)", __LINE__, __FILE__));
23  fxDescription= "!!!-- Go4 EventStore Exception --!!!";
24  if(eventstore)
25  {
26  fxEventStore=eventstore;
27  fxStoreName=eventstore->GetName();
28  fxStoreClass=eventstore->ClassName();
29  }
30  if(msg) 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  {
49  TGo4RuntimeException::operator=(right); // copy base class members
50  // put additional member copies here...
52  fxErrMess=right.fxErrMess;
55  return *this;
56  }
57  else
58  {
59  // copy is already store object
60  return *this;
61  }
62 }
63 
65 {
66  GO4TRACE((16,"TGo4EventStoreException::~TGo4EventStoreException", __LINE__, __FILE__));
67 
68 }
69 
71 {
72  GO4TRACE((12,"TGo4EventStoreException::Handle()", __LINE__, __FILE__));
73 
74  TGo4Log::Debug("%s \n %s of name %s:\n\t%s",
75  What(),
77  ,GetErrMess());
78 
79  return 0;
80 }
81 
const char * GetStoreName() const
TGo4EventStoreException & operator=(const TGo4EventStoreException &right)
const char * GetErrMess() const
virtual const char * What()
const char * GetStoreClass() const
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
TGo4EventStoreException(TGo4EventStore *eventsource, const char *msg=0)
#define GO4TRACE(X)
Definition: TGo4Log.h:26
TString fxDescription
Definition: TGo4Exception.h:38
static void Debug(const char *text,...)
Definition: TGo4Log.cxx:274
string msg
Definition: go4init.py:11