boost::openmethod::policies::throw_error_handler
Throws error as an exception.
Synopsis
Declared in <boost/openmethod/policies/throw_error_handler.hpp>
struct throw_error_handler
: error_handler
Example
struct throwing_registry
: registry<
policies::std_rtti, policies::fast_perfect_hash,
policies::vptr_vector, policies::throw_error_handler> {};
Cat felix;
try {
trick(virtual_ptr<Animal, throwing_registry>(felix));
} catch (const no_overrider&) {
std::cerr << "no overrider for Cat\n";
}
See Also
Created with MrDocs