FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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

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

Constructor.

Parameters
msgThe error mesage to be stored.

Definition at line 36 of file exception.cpp.

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

Destructor.

Definition at line 39 of file exception.cpp.

Member Function Documentation

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:

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:

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:

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

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: