Boost C++ Libraries

...one 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 a snapshot of the master branch, built from commit 064f557086.
PrevUpHomeNext

test::fail_handler

Return a test CompletionHandler which requires a specific error code.

Synopsis

Defined in header <boost/beast/_experimental/test/handler.hpp>

handler
fail_handler(
    error_code ec,
    boost::source_location loc = BOOST_CURRENT_LOCATION);
Description

This handler can be invoked with any signature whose first parameter is an error_code. The handler fails the test if:

Parameters

Name

Description

ec

The error code to specify.


PrevUpHomeNext