23 #ifndef O2SCL_EXCEPTION_H 24 #define O2SCL_EXCEPTION_H 36 #include <o2scl/err_hnd.h> 38 #ifndef DOXYGEN_NO_O2NS 67 virtual const char*
what()
const throw()
93 virtual const char*
what()
const throw()
122 virtual const char*
what()
const throw()
168 virtual const char*
what()
const throw()
195 virtual const char*
what()
const throw()
221 virtual const char*
what()
const throw()
247 virtual const char*
what()
const throw()
267 virtual void set(
const char *reason,
const char *file,
268 int line,
int lerrno);
271 virtual const char *
type()
const {
return "err_hnd_cpp"; }
279 #ifndef DOXYGEN_NO_O2NS Error handler to throw C++ exceptions.
exc_logic_error(const std::string &s)
Create an exception with description provided in s.
The main O<span style='position: relative; top: 0.3em; font-size: 0.8em'>2</span>scl O$_2$scl names...
virtual const char * what() const
Return the error string.
virtual const char * what() const
Return the error string.
err_hnd_type * err_hnd
The global error handler pointer.
err_hnd_cpp def_err_hnd
The default error handler.
Invalid argument exception.
virtual const char * what() const
Return the error string.
I/O failure error exception.
exc_invalid_argument(const std::string &s)
Create an exception with description provided in s.
virtual const char * what() const
Return the error string.
virtual const char * what() const
Return the error string.
virtual const char * what() const
Return the error string.
virtual const char * get_str()=0
Return a string summarizing the last error.
exc_overflow_error(const std::string &s)
Create an exception with description provided in s.
exc_ios_failure(const std::string &s)
Create an exception with description provided in s.
virtual ~exc_runtime_error()
Create an exception with description provided in s.
Generic runtime error exception.
virtual const char * type() const
Return type ("err_hnd_cpp")
exc_range_error(const std::string &s)
Create an exception with description provided in s.
Overflow error runtime exception.
virtual const char * what() const
Return the error string.
exc_exception()
Create an exception.
Range error runtime exception.