An exception class to represent a RISC OS error block.
More...
#include <exception.h>
|
| exception (_kernel_oserror *err) |
| Construct exception from RISC OS error block. More...
|
|
| exception (_kernel_oserror *err, unsigned int number, unsigned int r0) |
|
virtual | ~exception () throw () |
| Destroy exception. More...
|
|
virtual const char * | what () const throw () |
| Get message. More...
|
|
An exception class to represent a RISC OS error block.
pkg::os::exception::exception |
( |
_kernel_oserror * |
err | ) |
|
Construct exception from RISC OS error block.
The error block is not copied, and must remain in existence for the lifetime of the exception object. It is not freed when the exception object is destroyed (in part because it is likely to be owned by the operating system rather than the application).
- Parameters
-
err | a pointer to the error block |
pkg::os::exception::exception |
( |
_kernel_oserror * |
err, |
|
|
unsigned int |
number, |
|
|
unsigned int |
r0 |
|
) |
| |
virtual pkg::os::exception::~exception |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
const char * pkg::os::exception::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
Get message.
The value returned is a pointer into the original error block used to construct the exception object. It is supposed to remain valid for at least the lifetime of this object.
- Returns
- the message from the error block
The documentation for this class was generated from the following files: