|
virtual void | set (const char *reason, const char *file, int line, int lerrno) |
| Set an error.
|
|
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.
|
|
virtual const char * | type () const |
| Return type ("err_hnd_gsl")
|
|
An error handler for use in O2scl which replaces the GSL error handler
Note that the string arguments to set() can refer to temporary storage, since they are copied when the function is called and an error is set.
Definition at line 199 of file err_hnd.h.