Public Member Functions | Public Attributes

game::error Struct Reference

Base class for all the errors encountered by the engine. More...

#include <exceptions.hpp>

Inheritance diagram for game::error:
Inheritance graph
[legend]
Collaboration diagram for game::error:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 error ()
 error (const std::string &msg)
 ~error () throw ()
const char * what () const throw ()

Public Attributes

std::string message

Detailed Description

Base class for all the errors encountered by the engine.

It provides a field for storing custom messages related to the actual error.

Definition at line 28 of file exceptions.hpp.


Constructor & Destructor Documentation

game::error::error (  )  [inline]

Reimplemented in font::manager::error, CVideo::error, and gui::button::error.

Definition at line 32 of file exceptions.hpp.

game::error::error ( const std::string &  msg  )  [inline]
game::error::~error (  )  throw () [inline]

Definition at line 34 of file exceptions.hpp.


Member Function Documentation

const char* game::error::what (  )  const throw () [inline]

Member Data Documentation

std::string game::error::message

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:19:45 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs