L4Re - L4 Runtime Environment
L4::Runtime_error Class Reference

Exception for an abstract runtime error. More...

#include <l4/cxx/exceptions>

+ Inheritance diagram for L4::Runtime_error:
+ Collaboration diagram for L4::Runtime_error:

Public Member Functions

 Runtime_error (long err_no, char const *extra=0) throw ()
 Create a new Runtime_error. More...
 
char const * str () const throw ()
 Return a human readable string for the exception.
 
char const * extra_str () const
 Get the description text for this runtime error. More...
 
long err_no () const throw ()
 Get the error value for this runtime error. More...
 
- Public Member Functions inherited from L4::Base_exception
virtual ~Base_exception () throw ()
 Destruction.
 
- Public Member Functions inherited from L4::Exception_tracer
void const *const * pc_array () const throw ()
 Get the array containing the call trace.
 
int frame_count () const throw ()
 Get the number of entries that are valid in the call trace.
 

Additional Inherited Members

- Protected Member Functions inherited from L4::Base_exception
 Base_exception () throw ()
 Create a base exception.
 
- Protected Member Functions inherited from L4::Exception_tracer
 Exception_tracer () throw ()
 Create a back trace.
 

Detailed Description

Exception for an abstract runtime error.

This is the base class for a set of exceptions that cover all errors that have a C error value (see l4_error_code_t).

Definition at line 139 of file exceptions.

Constructor & Destructor Documentation

◆ Runtime_error()

L4::Runtime_error::Runtime_error ( long  err_no,
char const *  extra = 0 
)
throw (
)
inlineexplicit

Create a new Runtime_error.

Parameters
err_noError value for this runtime error.
extraDescription of what was happening while the error occured.

Definition at line 152 of file exceptions.

Member Function Documentation

◆ err_no()

long L4::Runtime_error::err_no ( ) const
throw (
)
inline

Get the error value for this runtime error.

Returns
Error value.

Definition at line 181 of file exceptions.

◆ extra_str()

char const* L4::Runtime_error::extra_str ( ) const
inline

Get the description text for this runtime error.

Returns
Pointer to the description string.

Definition at line 173 of file exceptions.


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