IoError Class Reference

- Main Page
- Modules
- Classes
- Namespaces
- Files
- Related Pages

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
IoError Class Reference
Exceptions

## Detailed Description

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

`#include <lemon/error.h>`

Inheritance diagram for IoError:
[legend]

## 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. More...
virtual const char * | what () const throw ()
| Returns a short error message. More...
Public Member Functions inherited from Exception
| Exception () throw ()
| Constructor.
virtual | ~Exception () throw ()
| Virtual destructor.

## 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 | ( |
| ) |  |
| inlinevirtual

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

Reimplemented from Exception.