LibPkg
Public Member Functions | List of all members
pkg::os::exception Class Reference

An exception class to represent a RISC OS error block. More...

#include <exception.h>

Inheritance diagram for pkg::os::exception:

Public Member Functions

 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...
 

Detailed Description

An exception class to represent a RISC OS error block.

Constructor & Destructor Documentation

◆ exception() [1/2]

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
erra pointer to the error block

◆ exception() [2/2]

pkg::os::exception::exception ( _kernel_oserror *  err,
unsigned int  number,
unsigned int  r0 
)

◆ ~exception()

virtual pkg::os::exception::~exception ( )
throw (
)
inlinevirtual

Destroy exception.

References what().

Member Function Documentation

◆ what()

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

Referenced by ~exception().


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

Reference Manual LibPkg Version 0.9.0 (4 Sep 2020)