This exception is thrown when a file operation cannot be succeeded.
#include <lemon/error.h>
Public Member Functions | |
IoError (const IoError &error) throw () | |
Copy constructor. | |
IoError (const char *message) throw () | |
Constructor. | |
IoError (const std::string &message) throw () | |
Constructor. | |
IoError (const char *message, const std::string &file) throw () | |
Constructor. | |
IoError (const std::string &message, const std::string &file) throw () | |
Constructor. | |
virtual | ~IoError () throw () |
Virtual destructor. | |
void | message (const char *message) throw () |
Set the error message. | |
void | message (const std::string &message) throw () |
Set the error message. | |
void | file (const std::string &file) throw () |
Set the file name. | |
const std::string & | message () const throw () |
Returns the error message. | |
const std::string & | file () const throw () |
Returns the filename. | |
virtual const char * | what () const throw () |
Returns a short error message. | |
Public Member Functions inherited from Exception | |
Exception () throw () | |
Constructor. | |
virtual | ~Exception () throw () |
Virtual destructor. | |
|
inline |
Returns the filename or an empty string if it was not specified.
|
inlinevirtual |
Returns a short error message which contains the message and the file name.
Reimplemented from Exception.