Interface: ThrowUnlessFailure


Represents a failure of an expectation evaluated with throwUnless. Properties of this error are a subset of the properties of Expectation and have the same values.

Name Type Description
matcherName String

The name of the matcher that was executed for this expectation.

message String

The failure message for the expectation.

passed Boolean

Whether the expectation passed or failed.

expected Object

If the expectation failed, what was the expected value.

actual Object

If the expectation failed, what actual value was produced.


  • Error