Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

error_handler Class Reference

Error handler for when throwing exceptions is not required. More...

#include <error_handler.h>

Data Structures

struct  free_function
 Callback class for free handler functions. More...
struct  member_function
 Callback class for member handler functions. More...

Static Public Member Functions

static void set_callback (ifunction< const etl::exception & > &f)
 Sets the error callback function.
static void error (const etl::exception &e)
 Sends the exception error to the user's handler function.

Detailed Description

Error handler for when throwing exceptions is not required.

Definition at line 51 of file error_handler.h.


Member Function Documentation

void error ( const etl::exception e ) [static]

Sends the exception error to the user's handler function.

Parameters:
eThe exception error.

Definition at line 53 of file error_handler.cpp.

void set_callback ( ifunction< const etl::exception & > &  f ) [static]

Sets the error callback function.

Parameters:
fA reference to an etl::function object that will handler errors.

Definition at line 44 of file error_handler.cpp.