Class err_hnd_type (o2scl)¶
-
class
o2scl
::
err_hnd_type
¶ Class defining an error handler [abstract base].
A global object of this type is defined, err_hnd .
- Idea for Future:
There may be an issue associated with the string manipulations causing errors in the error handler.
Subclassed by o2scl::err_hnd_gsl
Public Functions
-
err_hnd_type
()¶
-
~err_hnd_type
()¶
-
void
set
(const char *reason, const char *file, int line, int lerrno) = 0¶ Set an error.
-
void
get
(const char *&reason, const char *&file, int &line, int &lerrno) = 0¶ Get the last error.
-
int
get_errno
() const = 0¶ Return the last error number.
-
int
get_line
() const = 0¶ Return the line number of the last error.
-
const char *
get_reason
() const = 0¶ Return the reason for the last error.
-
const char *
get_file
() const = 0¶ Return the file name of the last error.
-
const char *
get_str
() = 0¶ Return a string summarizing the last error.
-
void
reset
() = 0¶ Remove last error information.
-
const char *
type
() const = 0¶ Return type.