Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Type definition failure_handler

failure_handler — Type of assertion failure handler functions (without from parameter).


// In header: <boost/contract/core/exception.hpp>

typedef boost::function< void()> failure_handler;


Assertion failure handler functions specified by this type must be nullary functors returning void. For example, this is used to specify contract failure handlers for implementation checks.

See Also:

Throw on Failure