org.specs2.execute

Failure

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

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

Self Type
Failure
Linear Supertypes
Serializable, Serializable, Product, Equals, ResultStackTrace, HasStackTrace, Result, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Failure
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ResultStackTrace
  7. HasStackTrace
  8. Result
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Failure (m: String, e: String, stackTrace: List[StackTraceElement], details: Details)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def addExpectationsNb (n: Int): Result

    increment the number of expectations

    increment the number of expectations

    Definition Classes
    Result
  7. def and (r: ⇒ Result): Result

    returns

    the logical and combination of 2 results

    Definition Classes
    Result
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def canEqual (arg0: Any): Boolean

    Definition Classes
    Failure → Equals
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def coloredStatus (implicit args: Arguments = Arguments()): String

    returns

    the colored textual status of the result

    Definition Classes
    Result
  12. val details : Details

  13. val e : String

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (o: Any): Boolean

    Definition Classes
    Failure → Equals → AnyRef → Any
  16. def exception : Exception

    returns

    an exception created from the message and the stackTraceElements

    Definition Classes
    Failure → ResultStackTrace
  17. val expectationsNb : Int

    Definition Classes
    Result
  18. val expected : String

    Definition Classes
    Result
  19. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hashCode (): Int

    Definition Classes
    Failure → AnyRef → Any
  22. def isError : Boolean

    returns

    true if the result is an Error instance

    Definition Classes
    Result
  23. def isFailure : Boolean

    returns

    true if the result is a Failure instance

    Definition Classes
    Failure → Result
  24. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  25. def isPending : Boolean

    returns

    true if the result is a Pending instance

    Definition Classes
    Result
  26. def isSkipped : Boolean

    returns

    true if the result is a Skipped instance

    Definition Classes
    Result
  27. def isSuccess : Boolean

    returns

    true if the result is a Success instance

    Definition Classes
    Result
  28. def isSuspended : Boolean

    returns

    true if the result is a Skipped or Pending

    Definition Classes
    Result
  29. def location : String

    returns

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

    Definition Classes
    ResultStackTrace → HasStackTrace
  30. val m : String

  31. def mapMessage (f: (String) ⇒ String): Result

    change this result's message

    change this result's message

    Definition Classes
    Result
  32. val message : String

    Definition Classes
    Result
  33. def mute : Failure

    returns

    the result with no message

    Definition Classes
    Failure → Result
  34. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  35. def not : Result

    returns

    a Success

    Definition Classes
    Failure → Result
  36. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  37. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  38. def or (res: ⇒ Result): Result

    returns

    the logical or combination of 2 results

    Definition Classes
    Failure → Result
  39. def productArity : Int

    Definition Classes
    Failure → Product
  40. def productElement (arg0: Int): Any

    Definition Classes
    Failure → Product
  41. def productIterator : Iterator[Any]

    Definition Classes
    Product
  42. def productPrefix : String

    Definition Classes
    Failure → Product
  43. def setExpectationsNb (n: Int): Result

    set the number of expectations

    set the number of expectations

    Definition Classes
    Failure → Result
  44. def skip : Skipped

    returns

    a

  45. val stackTrace : List[StackTraceElement]

    Definition Classes
    Failure → HasStackTrace
  46. def status : String

    returns

    the uncolored textual status of the result

    Definition Classes
    Result
  47. def statusName (implicit args: Arguments = Arguments()): String

    returns

    the textual status of the result

    Definition Classes
    Result
  48. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  49. def toString (): String

    Definition Classes
    Failure → AnyRef → Any
  50. def updateMessage (msg: String): Result

    update the message of a result, keeping the subclass type

    update the message of a result, keeping the subclass type

    Definition Classes
    Result
  51. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  53. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ResultStackTrace

Inherited from HasStackTrace

Inherited from Result

Inherited from AnyRef

Inherited from Any