#include <error.h>
Public Member Functions | |
error_msg () | |
Constructor. | |
error_msg (char *code) | |
Constructor. | |
error_msg (const char *code, const char *msg,...) | |
Constructor. | |
void | add (single_error err) |
Add one error message to the stack. | |
void | add (string code) |
Add one error message to the stack. | |
void | add (string code, string msg) |
Add one error message to the stack. | |
string | what () |
Return all messages as a text. | |
Public Attributes | |
vector< single_error > | errors_stack |
Stack of errors. |
Definition at line 53 of file error.h.
error_msg::error_msg | ( | ) |
error_msg::error_msg | ( | char * | code | ) | [inline] |
Constructor.
one message added to the stack.
Definition at line 63 of file error.h.
References errors_stack.
error_msg::error_msg | ( | const char * | code, | |
const char * | msg, | |||
... | ||||
) | [inline] |
Constructor.
one message added to the stack.
!! len = _vscprintf( msg, args ) + 1;
Definition at line 74 of file error.h.
References error_msg(), and errors_stack.
void error_msg::add | ( | string | code, | |
string | msg | |||
) | [inline] |
Add one error message to the stack.
Definition at line 109 of file error.h.
References errors_stack.
void error_msg::add | ( | string | code | ) | [inline] |
Add one error message to the stack.
Definition at line 102 of file error.h.
References errors_stack.
void error_msg::add | ( | single_error | err | ) | [inline] |
Add one error message to the stack.
Definition at line 95 of file error.h.
References errors_stack.
Referenced by DiffusionCoefficient::Get().
string error_msg::what | ( | ) | [inline] |
Return all messages as a text.
Definition at line 116 of file error.h.
References errors_stack, and i.
Referenced by DiffusionCoefficient::Get(), and main().
vector<single_error> error_msg::errors_stack |
Stack of errors.
Definition at line 56 of file error.h.
Referenced by add(), error_msg(), and what().