CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
lumi::Exception Class Reference

#include <Exception.h>

Inheritance diagram for lumi::Exception:
lumi::duplicateRunInDataTagException lumi::invalidDataException lumi::nonCollisionException lumi::noStableBeamException

Public Member Functions

 Exception (const std::string &message, const std::string &methodname, const std::string &moduleName)
 
char const * what () const override throw ()
 
 ~Exception () override throw ()
 

Private Attributes

std::string m_message
 

Detailed Description

Definition at line 6 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception()

Exception::Exception ( const std::string &  message,
const std::string &  methodname,
const std::string &  moduleName 
)

Definition at line 2 of file Exception.cc.

3  : m_message(message + " LUMI :\"" + methodName + "\" from \"" + moduleName + "\" )") {}

◆ ~Exception()

lumi::Exception::~Exception ( )
throw (
)
inlineoverride

Definition at line 9 of file Exception.h.

9 {}

Member Function Documentation

◆ what()

char const* lumi::Exception::what ( ) const
throw (
)
inlineoverride

Definition at line 10 of file Exception.h.

10 { return m_message.c_str(); }

References m_message.

Referenced by lumi::Lumi2DB::retrieveData().

Member Data Documentation

◆ m_message

std::string lumi::Exception::m_message
private

Definition at line 13 of file Exception.h.

Referenced by what().

lumi::Exception::m_message
std::string m_message
Definition: Exception.h:13
EcalCalibMonitorClient_cfi.moduleName
moduleName
Definition: EcalCalibMonitorClient_cfi.py:17