CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
lumi::Exception Class Reference

#include <Exception.h>

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

Public Member Functions

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

Private Attributes

std::string m_message
 

Detailed Description

Definition at line 6 of file Exception.h.

Constructor & Destructor Documentation

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

Definition at line 2 of file Exception.cc.

4  :m_message(message+" LUMI :\"" + methodName+"\" from \""+moduleName + "\" )") {}
std::string m_message
Definition: Exception.h:16
virtual lumi::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 11 of file Exception.h.

11 {}

Member Function Documentation

virtual char const* lumi::Exception::what ( ) const
throw (
)
inlinevirtual

Definition at line 12 of file Exception.h.

References m_message.

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

12  {
13  return m_message.c_str();
14  }
std::string m_message
Definition: Exception.h:16

Member Data Documentation

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

Definition at line 16 of file Exception.h.

Referenced by what().