org.specs2.execute

Error

case class Error(m: String, e: Exception) extends Result with ResultStackTrace with Product with Serializable

This class represents an exception occurring during an execution.

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

Instance Constructors

  1. new Error(m: String, e: Exception)

Type Members

  1. type SelfType = Error

    Definition Classes
    ErrorResult

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def addExpectationsNb(n: Int): SelfType

    increment the number of expectations

    increment the number of expectations

    Definition Classes
    Result
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

    returns

    the colored textual status of the result

    Definition Classes
    Result
  10. val e: Exception

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(o: Any): Boolean

    Definition Classes
    Error → Equals → AnyRef → Any
  13. def exception: Throwable

    returns

    an exception created from the message and the stackTraceElements

    Definition Classes
    ErrorResultStackTrace
  14. val expectationsNb: Int

    Definition Classes
    Result
  15. val expected: String

    Definition Classes
    Result
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    Error → AnyRef → Any
  19. def isError: Boolean

    returns

    true if the result is an Error instance

    Definition Classes
    ErrorResult
  20. def isFailure: Boolean

    returns

    true if the result is a Failure instance

    Definition Classes
    Result
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isPending: Boolean

    returns

    true if the result is a Pending instance

    Definition Classes
    Result
  23. def isSkipped: Boolean

    returns

    true if the result is a Skipped instance

    Definition Classes
    Result
  24. def isSuccess: Boolean

    returns

    true if the result is a Success instance

    Definition Classes
    Result
  25. def isSuspended: Boolean

    returns

    true if the result is a Skipped or Pending

    Definition Classes
    Result
  26. def isThrownFailure: Boolean

    returns

    true if the result is a Failure that was thrown like a JUnit assertion error or a NotImplemented exception

    Definition Classes
    Result
  27. def location(filter: StackTraceFilter): String

    Definition Classes
    ResultStackTrace
  28. def location: String

    returns

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

    Definition Classes
    ResultStackTraceHasStackTrace
  29. val m: String

  30. def mapExpected(f: (String) ⇒ String): Result

    change this result's expected

    change this result's expected

    Definition Classes
    Result
  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: Error

    returns

    the result with no message

    Definition Classes
    ErrorResult
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. 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

    Definition Classes
    Result
  38. def setExpectationsNb(n: Int): Error

    set the number of expectations

    set the number of expectations

    Definition Classes
    ErrorResult
  39. def stackTrace: List[StackTraceElement]

    Definition Classes
    ErrorHasStackTrace
  40. def status: String

    returns

    the uncolored textual status of the result

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

    returns

    the textual status of the result

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

    Definition Classes
    AnyRef
  43. 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

    Definition Classes
    Result
  44. 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
  45. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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

Ungrouped