Class UnexpectedExceptionFailure

Inheritance Relationships

Base Type

Class Documentation

class UnexpectedExceptionFailure : public mu::tiny::test::Failure
[source]

Failure reported when a test body throws an unexpected exception.

is_error() returns true for this subclass because it represents an unhandled exception rather than a deliberate assertion.

Only available when MUTINY_HAVE_EXCEPTIONS is 1.

Public Functions

inline virtual bool is_error() const override
Returns:

true (this is an error, not a deliberate assertion failure).

UnexpectedExceptionFailure(Shell *test)

Construct for an exception of unknown type.

Parameters:

test – The failing test.