GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
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
50 fxErrMess = right.fxErrMess;
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
#define GO4TRACE(X)
Definition TGo4Log.h:25
TString fxStoreName
Name of the throwing event source.
const char * GetStoreName() const
Name of the throwing event source.
const char * GetStoreClass() const
Name of the throwing event source.
const char * GetErrMess() const
Status/ error message of the last event.
TGo4EventStoreException()=delete
Int_t Handle() override
This is a default handler function for the respective exception type.
TString fxStoreClass
Class of the throwing event source.
TGo4EventStoreException & operator=(const TGo4EventStoreException &right)
TString fxErrMess
Error message at exception throw time.
The abstract interface class for the raw event store.
virtual const char * What()
Returns string describing the kind of exception.
TString fxDescription
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition TGo4Log.cxx:281
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)