EventAnalysis  1.3.0
Public Member Functions | Private Attributes | List of all members
EA::Exception Class Reference

#include <Exception.h>

Inheritance diagram for EA::Exception:
EA::CommandLineParameters::MultipleDefinitionExc EA::Insertion::Exception EA::Memory::BadLevelsException EA::ObjectConsumer::BadCategory EA::ObjectConsumer::BadName EA::ObjectConsumer::UndeclaredObject EA::ObjectProducer::BadCategory EA::ObjectProducer::BadName EA::Retrieval::Exception

Public Member Functions

 Exception (std::string msg="")
 
const char * what () const noexcept override
 The error message. More...
 

Private Attributes

std::string _what
 

Detailed Description

Base class for EventAnalysis exceptions.

This class adds some common utilities to std::exception, like the setting of the return value of what() in the constructor.

Do not throw this class to signal a failure in memory allocation.

Constructor & Destructor Documentation

◆ Exception()

EA::Exception::Exception ( std::string  msg = "")
inline

Constructor.

Parameters
msgthe message to be returned by what().

Member Function Documentation

◆ what()

const char* EA::Exception::what ( ) const
inlineoverridenoexcept

The error message.

Returns
the error message'

Member Data Documentation

◆ _what

std::string EA::Exception::_what
private

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