Companion object for Failed offering several factory methods.
Attributes
Members list
Type members
Inherited types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
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.
Attributes
- 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
Attributes
- 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
Attributes
- Returns
-
An instance of
Failedwith aTestFailedExceptioncreated from passed inmessageandcauseset as itsexceptionfield.
Creates a Failed with the passed in cause.
Creates a Failed with the passed in cause.
Value parameters
- cause
-
the passed in cause
Attributes
- Returns
-
A
Failedwithexceptionfield set to a newly createdTestFailedExceptionusing the passed incause.