boost::openmethod::policies::error_handler
Policy for error handling.
Synopsis
Declared in <boost/openmethod/preamble.hpp>
struct error_handler;
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
ErrorHandlerFnblueprint.
Derived Classes
| Name | Description |
|---|---|
Calls a std::function with the error. |
|
Throws error as an exception. |
Created with MrDocs