![]() |
AliPhysics
0644110 (0644110)
|
Exception thrown by the histogram container in case of problems. More...
#include <AliEMCalHistoContainer.h>
Public Types | |
enum | ExceptionType_t { kHistNotFoundException = 0, kTypeException = 1, kHistDuplicationException = 2, kGroupException = 3 } |
Definition of exception types thrown by the histogram container. More... | |
Public Member Functions | |
HistoContainerContentException (const char *histname, const char *hgroup, ExceptionType_t etype) | |
virtual | ~HistoContainerContentException () throw () |
virtual const char * | what () const throw () |
const char * | GetErrorHistogramName () const |
ExceptionType_t | GetExceptionType () const |
Private Member Functions | |
void | CreateErrorMessage () |
Private Attributes | |
std::string | fHistname |
Name of the histogram producing the exception. More... | |
std::string | fGroup |
Group of objects producing the exception. More... | |
std::string | fErrorMessage |
container for the error message produced in the what function More... | |
ExceptionType_t | fExceptionType |
type of the exception More... | |
Exception thrown by the histogram container in case of problems.
HistoContainerContentException is thrown by the histogram container in case of problems appearing when accessing or filling histograms. Problems handled by this class are:
Error handling class for the histogram container
Definition at line 51 of file AliEMCalHistoContainer.h.
Definition of exception types thrown by the histogram container.
This enumeration defines possible exeption types handled by the exception class
Definition at line 59 of file AliEMCalHistoContainer.h.
|
inline |
Constuctor, defining the exception. Called when a HistoContainerContentException is thrown
histname | Name of the histogram throwing the exception |
hgroup | Group throwing the exception |
etype |
Definition at line 72 of file AliEMCalHistoContainer.h.
|
inlinevirtual |
Destructor
Definition at line 87 of file AliEMCalHistoContainer.h.
|
inlineprivate |
Create error message with the histogram name, the histogram group, and the error type
Definition at line 112 of file AliEMCalHistoContainer.h.
Referenced by HistoContainerContentException().
|
inline |
Get the name of the histogram raising the exception
Definition at line 101 of file AliEMCalHistoContainer.h.
|
inline |
Get the type of the exception
Definition at line 106 of file AliEMCalHistoContainer.h.
|
inlinevirtual |
Get error message associated with the histogram
Definition at line 93 of file AliEMCalHistoContainer.h.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillClusterHist(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillEventHist(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillTrackHist(), EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects().
|
private |
container for the error message produced in the what function
Definition at line 137 of file AliEMCalHistoContainer.h.
Referenced by CreateErrorMessage(), and what().
|
private |
type of the exception
Definition at line 138 of file AliEMCalHistoContainer.h.
Referenced by CreateErrorMessage(), and GetExceptionType().
|
private |
Group of objects producing the exception.
Definition at line 136 of file AliEMCalHistoContainer.h.
Referenced by CreateErrorMessage(), and HistoContainerContentException().
|
private |
Name of the histogram producing the exception.
Definition at line 135 of file AliEMCalHistoContainer.h.
Referenced by CreateErrorMessage(), GetErrorHistogramName(), and HistoContainerContentException().