Failure

case
class Failure(m: String, e: String, trace: List[StackTraceElement], details: Details) extends Result with ResultStackTrace

This class represents the failure of an execution. It has a message and a stacktrace

trait Serializable
trait Product
trait Equals
class Result
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

override
def equals(o: Any): Boolean
Definition Classes
Equals -> Any
def exception: Throwable
Returns

an exception created from the message and the stackTraceElements

override
def hashCode: Int
Definition Classes
Any
override
def isFailure: Boolean
Definition Classes
override
def isThrownFailure: Boolean
Definition Classes
def stackTrace: List[StackTraceElement]
override
def toString: String
Definition Classes
Any

Inherited methods

increment the number of expectations

increment the number of expectations

Inherited from
Result
def coloredStatus(using args: Arguments): String
Returns

the colored textual status of the result

Inherited from
Result
def isError: Boolean
Returns

true if the result is an Error instance

Inherited from
Result
def isIssue: Boolean
Returns

true if the result is a failure or an Error

Inherited from
Result
def isPending: Boolean
Returns

true if the result is a Pending instance

Inherited from
Result
def isSkipped: Boolean
Returns

true if the result is a Skipped instance

Inherited from
Result
def isSuccess: Boolean
Returns

true if the result is a Success instance

Inherited from
Result
def isSuspended: Boolean
Returns

true if the result is a Skipped or Pending

Inherited from
Result
def location(filter: StackTraceFilter): String
Inherited from
ResultStackTrace
def location: String
Returns

the location (file and line number) of the topmost stackTraceElement

Inherited from
ResultStackTrace
def mapExpected(f: String => String): Result

change this result's expected

change this result's expected

Inherited from
Result
Returns

the negation of this result where a success becomes a failure and vice-versa

Inherited from
Result
def prependMessage(pre: String): Result

prepend another message and a conjunction depending on the status of this result

prepend another message and a conjunction depending on the status of this result

Inherited from
Result
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def setMessage(msg: String): Result

set the message of a result, keeping the subclass type

set the message of a result, keeping the subclass type

Inherited from
Result
def status: String
Returns

the uncolored textual status of the result

Inherited from
Result
def statusName(using args: Arguments): String
Returns

the textual status of the result

Inherited from
Result
def updateExpected(exp: String): Result

update the expected of a result, keeping the subclass type

update the expected of a result, keeping the subclass type

Inherited from
Result
def updateMessage(f: String => String): Result

change this result's message

change this result's message

Inherited from
Result

Inherited fields

Inherited from
Result
val expected: String
Inherited from
Result
val message: String
Inherited from
Result