boost::openmethod::policies::error_handler

Policy for error handling.

Synopsis

struct error_handler;

Types

Name

category

Derived Classes

Name Description

default_error_handler

Calls a std::function with the error.

throw_error_handler

Throws error as an exception.

Description

A error_handler policy runs code before the library terminates the program due to an error. This can be useful for throwing, logging, cleanup, or other actions.

Requirements

Classes implementing this policy must:

  • derive from `error_handler`.

  • provide a `fn<Registry>` metafunction that conforms to the ErrorHandlerFn blueprint.

Created with MrDocs