|
Hegel 0.11.4
Property-based testing for C++
|
Interface for an exception that names its own failure origin. More...
#include <hegel.h>
Public Member Functions | |
| FailureOrigin (const FailureOrigin &)=default | |
| Copy-constructs. An origin holds no state of its own. | |
| FailureOrigin & | operator= (const FailureOrigin &)=default |
| virtual std::string | failure_origin () const =0 |
| The origin grouping this failure. | |
Interface for an exception that names its own failure origin.
Hegel groups counterexamples by origin to tell one bug from another. By default, the origin of a thrown exception is its type and the site it was thrown from.
Derive from this interface to define origins some other way. The origin must be stable.
|
pure virtual |
The origin grouping this failure.
Implemented in hegel::GTestFailure.
|
default |
Copy-assigns. An origin holds no state of its own.