AliPhysics  8d00e07 (8d00e07)
PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException Class Reference

Handling of incorrect values in YAML configuration files. More...

#include <AliAnalysisTaskEmcalTriggerSelection.h>

Inheritance diagram for PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException:

Public Member Functions

 ConfigValueException (const char *key, const char *value)
 Construct a new ConfigValueException object. More...
 
virtual ~ConfigValueException () throw ()
 Destructor. More...
 
const char * what () const throw ()
 Display error message. More...
 
const std::string & getKey () const
 
const std::string & getValue () const
 

Private Attributes

std::string fKey
 Key for which an unknown value was assigned. More...
 
std::string fValue
 Improper value raising the exception. More...
 
std::string fMessage
 Error message shown in what() More...
 

Detailed Description

Handling of incorrect values in YAML configuration files.

Many information (Acceptance, patch type, ...) are represented in the YAML configuration file as strings. Thus they correspond to a finite set of values, usually handled as enumeration type. This class handles the error raised for improper configuration values;

Definition at line 156 of file AliAnalysisTaskEmcalTriggerSelection.h.

Constructor & Destructor Documentation

PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::ConfigValueException ( const char *  key,
const char *  value 
)

Construct a new ConfigValueException object.

Exception is thrown when decoding a configuration string with an unknown value

Parameters
keyKey for which an improper value was set
valueImproper value

Definition at line 488 of file AliAnalysisTaskEmcalTriggerSelection.cxx.

virtual PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::~ConfigValueException ( )
throw (
)
inlinevirtual

Destructor.

Definition at line 171 of file AliAnalysisTaskEmcalTriggerSelection.h.

Member Function Documentation

const std::string& PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::getKey ( ) const
inline

Definition at line 179 of file AliAnalysisTaskEmcalTriggerSelection.h.

const std::string& PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::getValue ( ) const
inline

Definition at line 180 of file AliAnalysisTaskEmcalTriggerSelection.h.

const char* PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::what ( ) const
throw (
)
inline

Display error message.

Returns
Error message string

Definition at line 177 of file AliAnalysisTaskEmcalTriggerSelection.h.

Referenced by PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigureFromYAML().

Member Data Documentation

std::string PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::fKey
private

Key for which an unknown value was assigned.

Definition at line 183 of file AliAnalysisTaskEmcalTriggerSelection.h.

Referenced by ConfigValueException().

std::string PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::fMessage
private

Error message shown in what()

Definition at line 185 of file AliAnalysisTaskEmcalTriggerSelection.h.

Referenced by ConfigValueException().

std::string PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::ConfigValueException::fValue
private

Improper value raising the exception.

Definition at line 184 of file AliAnalysisTaskEmcalTriggerSelection.h.

Referenced by ConfigValueException().


The documentation for this class was generated from the following files: