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() [1/2]

MagException::MagException ( )
throw (
)
inline

Definition at line 9 of file MagExceptions.h.

9 {}

◆ MagException() [2/2]

MagException::MagException ( const char *  message)

Definition at line 3 of file MagExceptions.cc.

3 : theMessage(message) {}

◆ ~MagException()

MagException::~MagException ( )
throw (
)
override

Definition at line 4 of file MagExceptions.cc.

4 {}

Member Function Documentation

◆ what()

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

Definition at line 5 of file MagExceptions.cc.

5 { return theMessage.c_str(); }

References theMessage.

Referenced by magneticfield::MagGeoBuilder::buildInterpolator(), and MagGeoBuilderFromDDD::buildInterpolator().

Member Data Documentation

◆ theMessage

std::string MagException::theMessage
private

Definition at line 15 of file MagExceptions.h.

Referenced by what().

MagException::theMessage
std::string theMessage
Definition: MagExceptions.h:15