Public Member Functions

IoError Class Reference


Detailed Description

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

#include <lemon/error.h>

Inheritance diagram for IoError:

List of all members.

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.

Member Function Documentation

const std::string& file ( ) const throw () [inline]

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

virtual const char* what ( ) const throw () [inline, virtual]

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

Reimplemented from Exception.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines