angel  mercurial changeset:
angel::base_exception Class Reference

#include <angel_exceptions.hpp>

Inheritance diagram for angel::base_exception:
Collaboration diagram for angel::base_exception:

List of all members.

Public Member Functions

 base_exception (std::string filename, int linenumber, std::string what)
 Save file name, line number and reason of exception.
void say_reason ()
 Write file name, line number and reason to cerr.
const std::string & what_reason () const
 return file name, line number and reason as string

Protected Attributes

std::string reason

Detailed Description

Definition at line 20 of file angel_exceptions.hpp.


Constructor & Destructor Documentation

angel::base_exception::base_exception ( std::string  filename,
int  linenumber,
std::string  what 
) [inline]

Save file name, line number and reason of exception.

Definition at line 25 of file angel_exceptions.hpp.

References reason.


Member Function Documentation

Write file name, line number and reason to cerr.

Definition at line 30 of file angel_exceptions.hpp.

References reason.

const std::string& angel::base_exception::what_reason ( ) const [inline]

return file name, line number and reason as string

Definition at line 33 of file angel_exceptions.hpp.

References reason.


Member Data Documentation

std::string angel::base_exception::reason [protected]

Definition at line 22 of file angel_exceptions.hpp.

Referenced by base_exception(), say_reason(), and what_reason().


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