![]() |
Elm
2
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 |
String | message () override |
![]() | |
virtual | ~Exception (void) |
This exception is usually thrown due to system related errors.
typedef enum elm::sys::SystemException::error_t error_t |
enum error_t |
SystemException | ( | error_t | error, |
String | message | ||
) |
Build a simple system exception.
error | Error kind. |
message | Message. |
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 SystemException::ALREADY_EXIST, SystemException::BAD_PATH, SystemException::IO_ERROR, SystemException::NO_ACCESS, SystemException::NO_MORE_RESOURCE, and StringBuffer::toString().
|
overridevirtual |
Return a message describing the exception.
Reimplemented from Exception.
Referenced by File::load(), and Parser::parse().