FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::Exception Class Reference

Exception base class. More...

#include <exception.h>

Inherits runtime_error.

+ Collaboration diagram for FIFE::Exception:

Public Member Functions

 Exception (const std::string &msg)
 Constructor. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 
virtual const char * what () const throw ()
 Returns the error message. More...
 
virtual const std::string & getTypeStr () const
 
virtual const std::string & getDescription () const
 
void update ()
 

Private Attributes

std::string m_what
 

Detailed Description

Exception base class.

All other exceptions derived from this merely adjust the error string to be slightly more specific.

Definition at line 43 of file exception.h.

Constructor & Destructor Documentation

◆ Exception()

FIFE::Exception::Exception ( const std::string &  msg)

Constructor.

Parameters
msgThe error mesage to be stored.

Definition at line 36 of file exception.cpp.

◆ ~Exception()

FIFE::Exception::~Exception ( )
throw (
)
virtual

Destructor.

Definition at line 39 of file exception.cpp.

Member Function Documentation

◆ getDescription()

virtual const std::string& FIFE::Exception::getDescription ( ) const
inlinevirtual

Definition at line 60 of file exception.h.

References update().

Referenced by update().

+ Here is the caller graph for this function:

◆ getTypeStr()

virtual const std::string& FIFE::Exception::getTypeStr ( ) const
inlinevirtual

Definition at line 59 of file exception.h.

Referenced by update().

+ Here is the caller graph for this function:

◆ update()

void FIFE::Exception::update ( )

Definition at line 45 of file exception.cpp.

References getDescription(), getTypeStr(), and m_what.

Referenced by getDescription().

+ Here is the caller graph for this function:

◆ what()

const char * FIFE::Exception::what ( ) const
throw (
)
virtual

Returns the error message.

Returns
The error message.

Definition at line 41 of file exception.cpp.

References m_what.

Referenced by FIFE::VFS::createSource(), and FIFE::Console::execute().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_what

std::string FIFE::Exception::m_what
private

Definition at line 65 of file exception.h.

Referenced by update(), and what().


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