Companion object for Failed offering several factory methods.
- Companion:
- class
Type members
Value members
Concrete methods
Creates a Failed instance, with a TestFailedException set as its exception field.
Creates a Failed instance, with a TestFailedException set as its exception field.
- Returns:
An instance of
Failedwith aTestFailedExceptionset as itsexceptionfield.
Creates a Failed instance with the passed in message.
Creates a Failed instance with the passed in message.
- Value parameters:
- message
the message for the
TestFailedExceptionset as itsexceptionfield
- Returns:
An instance of
Failedwith aTestFailedExceptioncreated from passed inmessageset as itsexceptionfield.
Creates a Failed instance with the passed in message and cause.
Creates a Failed instance with the passed in message and cause.
- Value parameters:
- cause
the cause for the
TestFailedExceptionset as itsexceptionfield- message
the message for the
TestFailedExceptionset as itsexceptionfield
- Returns:
An instance of
Failedwith aTestFailedExceptioncreated from passed inmessageandcauseset as itsexceptionfield.