Failed

org.scalatest.Failed
See theFailed companion class
object Failed

Companion object for Failed offering several factory methods.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Failed.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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.

Attributes

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

Attributes

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

Attributes

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

Attributes

Returns

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