Arageli::assert_failed Class Reference

Exception class that can be trhowed when failed the some assertion. More...

#include <exception.hpp>

Inheritance diagram for Arageli::assert_failed:

Arageli::exception List of all members.

Public Member Functions

 assert_failed (const char *expr_a, const char *source_a, std::size_t line_a) throw ()
const char * expr () const throw ()
 Returns string notation of an expression that has been failed.
const char * source () const throw ()
 Returns name of source file in which failure has been occured.
std::size_t line () const throw ()
 Returns a number of line in file source() with failure.
virtual std::string msg () const
 Formats a human readable message with source, line and expression.
virtual void output (std::ostream &out) const
 Formats and outputs a human readable message with source, line and expression.

Detailed Description

Exception class that can be trhowed when failed the some assertion.

Holds information about failed expression, line and sourse name where placed the activated assertion.

Definition at line 101 of file exception.hpp.


Constructor & Destructor Documentation

Arageli::assert_failed::assert_failed ( const char *  expr_a,
const char *  source_a,
std::size_t  line_a 
) throw () [inline]

Definition at line 106 of file exception.hpp.


Member Function Documentation

const char* Arageli::assert_failed::expr (  )  const throw () [inline]

Returns string notation of an expression that has been failed.

Definition at line 117 of file exception.hpp.

std::size_t Arageli::assert_failed::line (  )  const throw () [inline]

Returns a number of line in file source() with failure.

Definition at line 123 of file exception.hpp.

virtual std::string Arageli::assert_failed::msg (  )  const [inline, virtual]

Formats a human readable message with source, line and expression.

Reimplemented from Arageli::exception.

Definition at line 126 of file exception.hpp.

void Arageli::assert_failed::output ( std::ostream &  out  )  const [virtual]

Formats and outputs a human readable message with source, line and expression.

Reimplemented from Arageli::exception.

Definition at line 81 of file exception.cpp.

const char* Arageli::assert_failed::source (  )  const throw () [inline]

Returns name of source file in which failure has been occured.

Definition at line 120 of file exception.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Aug 31 17:38:23 2006 for Arageli by  doxygen 1.4.7