Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::sys::SystemException Class Reference

#include <elm/sys/SystemException.h>

+ Inheritance diagram for elm::sys::SystemException:

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)
 

Detailed Description

This exception is usually thrown due to system related errors.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
OK 
NO_ACCESS 
NO_MORE_RESOURCE 
BAD_PATH 
IO_ERROR 
ALREADY_EXIST 

Constructor & Destructor Documentation

elm::sys::SystemException::SystemException ( error_t  error,
String  message 
)

Build a simple system exception.

Parameters
errorError kind.
messageMessage.
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.

Parameters
codeReal code.
headerHeader used for building the message.

References ALREADY_EXIST, BAD_PATH, IO_ERROR, NO_ACCESS, NO_MORE_RESOURCE, and elm::StringBuffer::toString().

Member Function Documentation

error_t elm::sys::SystemException::error ( void  ) const

Get the error kind.

Returns
Error kind.
String elm::sys::SystemException::message ( void  )
virtual

Return a message describing the exception.

Returns
Exception message.

Reimplemented from elm::Exception.

Referenced by elm::ini::File::load().


The documentation for this class was generated from the following files: