Represents an assertion failure.
More...
#include <eassert.h>
|
| | AssertionFailure (const std::string &file, size_t line, const std::string &func, const std::string &exp, const std::string &msg) |
| | Create a new AssertionFailure. More...
|
| |
| std::string | errmsg () const |
| |
| std::string | get_file () const |
| |
| size_t | get_line () const |
| |
| std::string | get_func () const |
| |
| std::string | get_exp () const |
| |
|
std::string | get_backtrace () const |
| |
|
virtual std::string | errmsg () const =0 |
| |
Represents an assertion failure.
◆ AssertionFailure()
| 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. |
◆ errmsg()
| std::string cwidget::util::AssertionFailure::errmsg |
( |
| ) |
const |
|
virtual |
◆ get_exp()
| std::string cwidget::util::AssertionFailure::get_exp |
( |
| ) |
const |
|
inline |
- Returns
- The assertion that failed.
◆ get_file()
| std::string cwidget::util::AssertionFailure::get_file |
( |
| ) |
const |
|
inline |
- Returns
- The source file in which the failing assertion occurred.
◆ get_func()
| std::string cwidget::util::AssertionFailure::get_func |
( |
| ) |
const |
|
inline |
- Returns
- The function in which the assertion failure occurres.
◆ get_line()
| size_t cwidget::util::AssertionFailure::get_line |
( |
| ) |
const |
|
inline |
- Returns
- The source line at which the failing assertion occurred.
The documentation for this class was generated from the following files:
- src/cwidget/generic/util/eassert.h
- src/cwidget/generic/util/eassert.cc