yorel::yomm2::policy::vectored_error
defined in <yorel/yomm2/core.hpp>, also provided by <yorel/yomm2/keywords.hpp>
template<class Policy>
struct vectored_error;
vectored_error
implements error_handler
using a static
std::function
.
Name | Value |
---|---|
class Policy | the policy containing the facet |
The policy containing the facet. Since vectored_error
has a static member
variable, making the policy a template parameter ensures that each policy has
its own copy.
Static member variables
error_handler_type error | current error handler |
static error_handler_type error;
A std::function
(see error_handler_type
), initialized to
default_error_handler
.
The function may throw an exception (unless they have been disabled), thus preventing program termination.
Static member functions
default_error_handler |
print diagnostics |
static void default_error_handler(const error_type& error_v)
If error_output
is available in Policy
, use it to print a
description of error
. Return normally, causing the program to be aborted.
error_output
: for diagnostics.