Hegel 0.18.2
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::MultipleFailures Class Reference

The run found more than one distinct failure. More...

#include <errors.h>

Inheritance diagram for hegel::MultipleFailures:

Public Member Functions

 MultipleFailures (std::vector< std::exception_ptr > failures)
const std::vector< std::exception_ptr > & failures () const

Detailed Description

The run found more than one distinct failure.

hegel::test() throws this when Settings::report_multiple_failures is true and the run found more than one failure. Each failure's own exception is in failures(). The message says how many failures there are, then gives the message of each on a line of its own.

Constructor & Destructor Documentation

◆ MultipleFailures()

hegel::MultipleFailures::MultipleFailures ( std::vector< std::exception_ptr > failures)
inlineexplicit
Parameters
failuresThe exception of each failure.

Member Function Documentation

◆ failures()

const std::vector< std::exception_ptr > & hegel::MultipleFailures::failures ( ) const
inline

The exception of each failure, in the order of the report.

Returns
The exceptions.

The documentation for this class was generated from the following file: