GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4DynamicList
TGo4DynamicListException.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
14
#include "
TGo4DynamicListException.h
"
15
16
#include "
TGo4Log.h
"
17
#include "
TGo4DynamicEntry.h
"
18
19
TGo4DynamicListException
&
TGo4DynamicListException::operator=
(
const
TGo4DynamicListException
& right)
20
{
21
GO4TRACE
((14,
"TGo4DynamicListException:operator="
, __LINE__, __FILE__));
22
if
(&right !=
this
) {
23
TGo4RuntimeException::operator=
(right);
// copy base class members
24
fxEntry
= right.
fxEntry
;
25
fxEntryName
= right.
fxEntryName
;
26
fxEntryClass
= right.
fxEntryClass
;
27
fxStatusMessage
= right.
fxStatusMessage
;
28
}
29
30
return
*
this
;
31
}
32
33
TGo4DynamicListException::TGo4DynamicListException
(
const
TGo4DynamicListException
&right) :
TGo4RuntimeException
(right)
34
{
35
GO4TRACE
((14,
"TGo4DynamicListException:TGo4DynamicListException(right)"
, __LINE__, __FILE__));
36
37
fxEntry
= right.
fxEntry
;
38
fxEntryName
= right.
fxEntryName
;
39
fxEntryClass
= right.
fxEntryClass
;
40
fxStatusMessage
= right.
fxStatusMessage
;
41
}
42
43
Int_t
TGo4DynamicListException::Handle
()
44
{
45
GO4TRACE
((12,
"TGo4AnalyisStepException::Handle()"
, __LINE__, __FILE__));
46
47
TGo4Log::Debug
(
"%s \n Entry %s:%s, %s\n \t--Entry was disabled."
,
What
(),
GetEntryClass
(),
GetEntryName
(),
48
GetStatusMessage
());
49
if
(
fxEntry
)
50
fxEntry
->EnableProcessing(kFALSE);
51
return
0;
52
}
53
54
TGo4DynamicListException::TGo4DynamicListException
(
TGo4DynamicEntry
*entry,
const
char
*message)
55
{
56
GO4TRACE
((14,
"TGo4DynamicListException:TGo4DynamicListException (TGo4DynamicEntry *,..)"
, __LINE__, __FILE__));
57
fxDescription
=
"!!!-- Go4 Dynamic List Exception --!!!"
;
58
59
fxEntry
= entry;
60
if
(
fxEntry
) {
61
fxEntryName
=
fxEntry
->GetName();
62
fxEntryClass
=
fxEntry
->ClassName();
63
}
64
fxStatusMessage
= message;
65
}
TGo4DynamicEntry.h
TGo4DynamicListException.h
TGo4Log.h
GO4TRACE
#define GO4TRACE(X)
Definition
TGo4Log.h:25
TGo4DynamicEntry
ABC for all entries that can be kept in a dynamic list.
Definition
TGo4DynamicEntry.h:27
TGo4DynamicListException::operator=
TGo4DynamicListException & operator=(const TGo4DynamicListException &right)
Definition
TGo4DynamicListException.cxx:19
TGo4DynamicListException::GetEntryName
const char * GetEntryName() const
Name of the throwing dynamic Entry.
Definition
TGo4DynamicListException.h:40
TGo4DynamicListException::fxEntryName
TString fxEntryName
Definition
TGo4DynamicListException.h:51
TGo4DynamicListException::TGo4DynamicListException
TGo4DynamicListException(TGo4DynamicEntry *entry, const char *message)
Definition
TGo4DynamicListException.cxx:54
TGo4DynamicListException::fxStatusMessage
TString fxStatusMessage
Definition
TGo4DynamicListException.h:49
TGo4DynamicListException::GetEntryClass
const char * GetEntryClass() const
Classname of the throwing dynamic entry.
Definition
TGo4DynamicListException.h:43
TGo4DynamicListException::fxEntryClass
TString fxEntryClass
Definition
TGo4DynamicListException.h:53
TGo4DynamicListException::GetStatusMessage
const char * GetStatusMessage() const
Status message of last Process() call.
Definition
TGo4DynamicListException.h:37
TGo4DynamicListException::Handle
Int_t Handle() override
This is a default handler function for the respective exception type.
Definition
TGo4DynamicListException.cxx:43
TGo4DynamicListException::fxEntry
TGo4DynamicEntry * fxEntry
1
Definition
TGo4DynamicListException.h:47
TGo4Exception::What
virtual const char * What()
Returns string describing the kind of exception.
Definition
TGo4Exception.cxx:42
TGo4Exception::fxDescription
TString fxDescription
Definition
TGo4Exception.h:38
TGo4Log::Debug
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition
TGo4Log.cxx:281
TGo4RuntimeException::TGo4RuntimeException
TGo4RuntimeException()
Definition
TGo4RuntimeException.cxx:20
TGo4RuntimeException::operator=
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
Definition
TGo4RuntimeException.cxx:42
Generated by
1.13.2