#include <exception.hpp>
Public Member Functions | |
xh_io_exception (const string &message, const string &origin="") | |
xh_io_exception (const string &message, const xh_location &location, const string &origin="") | |
virtual const string | getFormattedMessage () const |
virtual const xh_location & | getLocation () const |
virtual void | setLocation (const xh_location &location) |
![]() | |
xh_exception (const string &message, const string &origin="") | |
![]() | |
xh_throwable (const string &message, const string &origin="") | |
virtual const string & | getMessage () const |
virtual void | setMessage (const string &message) |
virtual const string & | getOrigin () const |
virtual void | setOrigin (const string &origin) |
An I/O-related exception.
Code should throw this exception when it fails to read from or write to an external resource, such as a file, socket, URL, or database.
In addition to the functionality of xh_exception, an xh_io_exception may contain location information, such as the name of a file or URL, and possible also a location in that file or URL.