Flow123d
JS_before_hm-978-gf0793cd
|
Helper class. More...
#include <asserts.hh>
Public Member Functions | |
Exc_assert () | |
~Exc_assert () | |
Destructor. More... | |
void | print_info (std::ostringstream &out) const override |
Print formatted assert message. More... | |
Public Member Functions inherited from ExceptionBase | |
ExceptionBase () | |
Default constructor, just calls fill_stacktrace() . More... | |
ExceptionBase (const ExceptionBase &other) | |
Copy constructor, performs deep copy of stacktrace. More... | |
void | print_stacktrace (std::ostream &out) const |
Prints formated stacktrace into given stream out . More... | |
const char * | what () const throw () |
virtual | ~ExceptionBase () throw () |
Destructor, possibly free stacktrace. More... | |
Protected Member Functions | |
std::string | what_type_msg () const override |
Override ExceptionBase::what_type_msg() More... | |
std::ostringstream & | form_message (std::ostringstream &) const override |
Override ExceptionBase::form_message() More... | |
Protected Attributes | |
std::string | expression_ |
Assertion expression. More... | |
std::string | file_name_ |
Actual file. More... | |
std::string | function_ |
Actual function. More... | |
int | line_ |
Actual line. More... | |
std::vector< std::string > | current_val_ |
Formated strings of names and values of given variables. More... | |
std::string | what_type_msg_ |
String representation of message type (Program error, Warning, ...) More... | |
Protected Attributes inherited from ExceptionBase | |
StackTrace | stack_trace_ |
Stacktrace of exception. More... | |
std::vector< std::string > | frames_to_cut_ |
Stacktrace frames, which will be cut, see StackTrace::print method. More... | |
Friends | |
class | Assert |
Helper class.
Stores data of assert and allow throws exception.
Definition at line 34 of file asserts.hh.
feal::Exc_assert::Exc_assert | ( | ) |
Definition at line 29 of file asserts.cc.
|
inline |
Destructor.
Definition at line 41 of file asserts.hh.
|
overrideprotectedvirtual |
Override ExceptionBase::form_message()
Reimplemented from ExceptionBase.
Definition at line 52 of file asserts.cc.
|
overridevirtual |
Print formatted assert message.
Implements ExceptionBase.
Definition at line 34 of file asserts.cc.
|
overrideprotectedvirtual |
Override ExceptionBase::what_type_msg()
Reimplemented from ExceptionBase.
Definition at line 47 of file asserts.cc.
|
friend |
Definition at line 35 of file asserts.hh.
|
protected |
Formated strings of names and values of given variables.
Definition at line 57 of file asserts.hh.
|
protected |
Assertion expression.
Definition at line 53 of file asserts.hh.
|
protected |
Actual file.
Definition at line 54 of file asserts.hh.
|
protected |
Actual function.
Definition at line 55 of file asserts.hh.
|
protected |
Actual line.
Definition at line 56 of file asserts.hh.
|
protected |
String representation of message type (Program error, Warning, ...)
Definition at line 58 of file asserts.hh.