Failed

object Failed

Companion object for Failed offering several factory methods.

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Failed.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply()(implicit pos: Position): Failed

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 a TestFailedException set as its exception field.

def apply(message: String)(implicit pos: Position): Failed

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 its exception field

Returns:

An instance of Failed with a TestFailedException created from passed in message set as its exception field.

def apply(message: String, cause: Throwable)(implicit pos: Position): Failed

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 its exception field

message

the message for the TestFailedException set as its exception field

Returns:

An instance of Failed with a TestFailedException created from passed in message and cause set as its exception field.

def here(cause: Throwable)(implicit pos: Position): Failed

Creates a Failed with the passed in cause.

Creates a Failed with the passed in cause.

Value parameters:
cause

the passed in cause

Returns:

A Failed with exception field set to a newly created TestFailedException using the passed in cause.