CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MagException Class Reference

#include <MagExceptions.h>

Inheritance diagram for MagException:
MagGeometryError MagLogicError

Public Member Functions

 MagException () throw ()
 
 MagException (const char *message)
 
const char * what () const override throw ()
 
 ~MagException () override throw ()
 

Private Attributes

std::string theMessage
 

Detailed Description

Definition at line 7 of file MagExceptions.h.

Constructor & Destructor Documentation

MagException::MagException ( )
throw (
)
inline

Definition at line 9 of file MagExceptions.h.

References what(), and ~MagException().

9 {}
MagException::MagException ( const char *  message)

Definition at line 3 of file MagExceptions.cc.

3 : theMessage(message) {}
std::string theMessage
Definition: MagExceptions.h:14
MagException::~MagException ( )
throw (
)
override

Definition at line 4 of file MagExceptions.cc.

Referenced by MagException().

4 {}

Member Function Documentation

const char * MagException::what ( ) const
throw (
)
override

Definition at line 6 of file MagExceptions.cc.

References theMessage.

Referenced by MagGeoBuilderFromDDD::buildInterpolator(), and MagException().

6 { return theMessage.c_str();}
std::string theMessage
Definition: MagExceptions.h:14

Member Data Documentation

std::string MagException::theMessage
private

Definition at line 14 of file MagExceptions.h.

Referenced by what().