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
Failed
with aTestFailedException
set as itsexception
field.
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
TestFailedException
set as itsexception
field
- Returns:
An instance of
Failed
with aTestFailedException
created from passed inmessage
set as itsexception
field.
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
TestFailedException
set as itsexception
field- message
the message for the
TestFailedException
set as itsexception
field
- Returns:
An instance of
Failed
with aTestFailedException
created from passed inmessage
andcause
set as itsexception
field.