Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/sys/SystemException.h>
Public Types | |
enum | error_t { OK = 0, NO_ACCESS, NO_MORE_RESOURCE, BAD_PATH, IO_ERROR, ALREADY_EXIST } |
typedef enum elm::sys::SystemException::error_t | error_t |
Public Member Functions | |
SystemException (error_t err, String msg) | |
SystemException (int code, String header) | |
error_t | error (void) const |
virtual String | message (void) |
Public Member Functions inherited from elm::Exception | |
virtual | ~Exception (void) |
This exception is usually thrown due to system related errors.
Build a simple system exception.
error | Error kind. |
message | Message. |
elm::sys::SystemException::SystemException | ( | int | code, |
String | header | ||
) |
Build a system exception from real error code getting message from the system and appending the header with it.
code | Real code. |
header | Header used for building the message. |
References ALREADY_EXIST, BAD_PATH, IO_ERROR, NO_ACCESS, NO_MORE_RESOURCE, and elm::StringBuffer::toString().
error_t elm::sys::SystemException::error | ( | void | ) | const |
Get the error kind.
|
virtual |
Return a message describing the exception.
Reimplemented from elm::Exception.
Referenced by elm::ini::File::load().