| Home | Libraries | People | FAQ | More

## Function set_except_failure

boost::contract::set_except_failure — Set failure handler for exception guarantees.

## Synopsis

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

    from_failure_handler const &
    set_except_failure(from_failure_handler const & f);

## Description

Set a new failure handler and returns it.

Throws: This is declared `noexcept` (or `throw()` before C++11).

See Also: Throw on Failure, Exception Guarantees

Parameters: |
`f` | New failure handler functor to set.
Returns: | Same failure handler functor `f` passed as parameter (e.g., for concatenating function calls).