#include <Utilsexc.hh>
Inheritance diagram for RazorBack::Utilsexc_:
Public Methods | |
Utilsexc_ (const char *Thnm, bool F=false, const char *Msg=NULL) | |
Init with throwing function name Thnm, and fatality indicator F. More... | |
const string& | throw_name () const |
Returns the function name causing the exception. | |
const string& | error_message () const |
Returns the complete formatted error message. | |
bool | is_fatal () const |
Returns the fatality indicator value. | |
Protected Methods | |
void | print_prefix (ostringstream &Ost) const |
Protected Attributes | |
string | Message |
stores the formatted message, derived classes need access. | |
Private Methods | |
Utilsexc_ () | |
Private Attributes | |
string | Throwname |
for storing throw function name. | |
bool | Fatal |
true for fatal errors, false for warnings. |
Can store the name of the function which has thrown it and a flag indicating warnings or fatal conditions.
Definition at line 45 of file Utilsexc.hh.
|
Init with throwing function name Thnm, and fatality indicator F. By default it is false, indicating that the exceptional condition was not that bad. Msg, if not NULL (the default) or "" may contain a verbal description of the error. Use this facility when it is not worthwhile to derive an exception class for the error you wish to signal. |
|
|
|
Returns the function name causing the exception.
Definition at line 69 of file Utilsexc.hh. |
|
Returns the complete formatted error message.
Definition at line 72 of file Utilsexc.hh. |
|
Returns the fatality indicator value.
Definition at line 75 of file Utilsexc.hh. |
|
|
|
for storing throw function name.
Definition at line 49 of file Utilsexc.hh. |
|
true for fatal errors, false for warnings.
Definition at line 50 of file Utilsexc.hh. |
|
stores the formatted message, derived classes need access.
Definition at line 53 of file Utilsexc.hh. |