IoError

Declared in lemon/error.h, in the group Exceptions; the same class on the Doxygen site.

class IoError : public Exception

Input-Output error.

This exception is thrown when a file operation cannot be succeeded.

Public Functions

inline IoError( const IoError & error ) noexcept

Copy constructor.

inline explicit IoError( const char * message ) noexcept

Constructor.

inline explicit IoError( const std::string & message ) noexcept

Constructor.

inline explicit IoError( const char * message , const std::string & file ) noexcept

Constructor.

inline explicit IoError( const std::string & message , const std::string & file ) noexcept

Constructor.

inline virtual ~IoError() noexcept

Virtual destructor.

inline void message( const char * message ) noexcept

Set the error message.

inline void message( const std::string & message ) noexcept

Set the error message.

inline void file( const std::string & file ) noexcept

Set the file name.

inline const std::string & message() const noexcept

Returns the error message.

inline const std::string & file() const noexcept

Returns the filename.

Returns the filename or an empty string if it was not specified.

inline virtual const char * what() const noexcept

Returns a short error message.

Returns a short error message which contains the message and the file name.

Protected Attributes

std::string _message
std::string _file
mutable std::string _what