cwidget::util::AssertionFailure Class Reference

Represents an assertion failure. More...

#include <eassert.h>

Inheritance diagram for cwidget::util::AssertionFailure:

List of all members.

Public Member Functions

 AssertionFailure (const std::string &file, size_t line, const std::string &func, const std::string &exp, const std::string &msg)
 Create a new AssertionFailure.
std::string errmsg () const
std::string get_file () const
 
Returns:
The source file in which the failing assertion occurred.

size_t get_line () const
 
Returns:
The source line at which the failing assertion occurred.

std::string get_func () const
 
Returns:
The function in which the assertion failure occurres.

std::string get_exp () const
 
Returns:
The assertion that failed.


Detailed Description

Represents an assertion failure.


Constructor & Destructor Documentation

cwidget::util::AssertionFailure::AssertionFailure ( const std::string &  file,
size_t  line,
const std::string &  func,
const std::string &  exp,
const std::string &  msg 
)

Create a new AssertionFailure.

Parameters:
file The file in which the failing assertion occurred.
line The line on which the failing assertion occurred.
func The function in which the failing assertion occurred.
exp The failing assertion.
msg An extra message to include in the assertion.


Member Function Documentation

std::string cwidget::util::AssertionFailure::get_file (  )  const [inline]

Returns:
The source file in which the failing assertion occurred.

size_t cwidget::util::AssertionFailure::get_line (  )  const [inline]

Returns:
The source line at which the failing assertion occurred.

std::string cwidget::util::AssertionFailure::get_func (  )  const [inline]

Returns:
The function in which the assertion failure occurres.

std::string cwidget::util::AssertionFailure::get_exp (  )  const [inline]

Returns:
The assertion that failed.


The documentation for this class was generated from the following files:
Generated on Fri Feb 8 12:54:57 2008 for cwidget by  doxygen 1.5.4