#include <err_hnd.h>
A global object of this type is defined, err_hnd .
Definition at line 142 of file err_hnd.h.
Public Member Functions | |
virtual void | set (const char *reason, const char *file, int line, int lerrno)=0 |
Set an error. | |
virtual void | get (const char *&reason, const char *&file, int &line, int &lerrno)=0 |
Get the last error. | |
virtual int | get_errno ()=0 |
Return the last error number. | |
virtual int | get_line ()=0 |
Return the line number of the last error. | |
virtual const char * | get_reason ()=0 |
Return the reason for the last error. | |
virtual const char * | get_file ()=0 |
Return the file name of the last error. | |
virtual const char * | get_str ()=0 |
Return a string summarizing the last error. | |
virtual void | reset ()=0 |
Remove last error information. | |
Static Public Member Functions | |
static void | gsl_hnd (const char *reason, const char *file, int line, int lerrno) |
Set an error. |
static void gsl_hnd | ( | const char * | reason, | |
const char * | file, | |||
int | line, | |||
int | lerrno | |||
) | [inline, static] |
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page