Error handler to throw C++ exceptions. More...
#include <exception.h>
Public Member Functions | |
virtual void | set (const char *reason, const char *file, int line, int lerrno) |
Set an error. | |
virtual const char * | type () const |
Return type ("err_hnd_cpp") | |
![]() | |
virtual void | get (const char *&reason, const char *&file, int &line, int &lerrno) |
Get the last error. | |
virtual int | get_errno () const |
Return the last error number. | |
virtual int | get_line () const |
Return the line number of the last error. | |
virtual const char * | get_reason () const |
Return the reason for the last error. | |
virtual const char * | get_file () const |
Return the file name of the last error. | |
virtual const char * | get_str () |
Return a string summarizing the last error. | |
virtual void | reset () |
Remove last error information. | |
Additional Inherited Members | |
![]() | |
static void | gsl_hnd (const char *reason, const char *file, int line, int lerrno) |
Set an error. More... | |
![]() | |
size_t | fname_size |
Number of characters from filename to print (default 28) | |
![]() | |
std::string | errno_to_string (int errnox) |
Convert an error number to a string. | |
![]() | |
int | a_errno |
The error number. | |
int | a_line |
The line number. | |
char * | a_file |
The filename. | |
char | a_reason [rsize] |
The error explanation. | |
char | fullstr [fsize] |
A full string with explanation and line and file info. | |
![]() | |
static const int | rsize =300 |
The maximum size of error explanations. | |
static const int | fsize =400 |
The maximum size of error explanations with the line and file info. | |
The default error handler, def_err_hnd, is of this type.
Definition at line 258 of file exception.h.
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).