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
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
Attributes
- 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
Attributes
- Returns
-
An instance of
Failed
with aTestFailedException
created from passed inmessage
andcause
set as itsexception
field.
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
Failed
withexception
field set to a newly createdTestFailedException
using the passed incause
.