Embedded Template Library  1.0
 All Classes Files Functions Variables Typedefs Friends Modules Pages
etl::error_handler Class Reference

#include <error_handler.h>

Classes

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 exception & > &f)
 
static void error (const exception &e)
 

Detailed Description

Error handler for when throwing exceptions is not required.

Member Function Documentation

void etl::error_handler::error ( const exception e)
static

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

Parameters
eThe exception error.
void etl::error_handler::set_callback ( ifunction< const exception & > &  f)
static

Sets the error callback function.

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

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