Class/Object

org.specs2.execute

Error

Related Docs: object Error | package execute

Permalink

case class Error(m: String, t: Throwable) 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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Error(m: String, t: Throwable)

    Permalink

Type Members

  1. type SelfType = Error

    Permalink
    Definition Classes
    ErrorResult

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addExpectationsNb(n: Int): SelfType

    Permalink

    increment the number of expectations

    increment the number of expectations

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

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    returns

    the colored textual status of the result

    Definition Classes
    Result
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

    returns

    an exception created from the message and the stackTraceElements

    Definition Classes
    ErrorResultStackTrace
  11. val expectationsNb: Int

    Permalink
    Definition Classes
    Result
  12. val expected: String

    Permalink
    Definition Classes
    Result
  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Error → AnyRef → Any
  16. def isError: Boolean

    Permalink

    returns

    true if the result is an Error instance

    Definition Classes
    ErrorResult
  17. def isFailure: Boolean

    Permalink

    returns

    true if the result is a Failure instance

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

    Permalink
    Definition Classes
    Any
  19. def isPending: Boolean

    Permalink

    returns

    true if the result is a Pending instance

    Definition Classes
    Result
  20. def isSkipped: Boolean

    Permalink

    returns

    true if the result is a Skipped instance

    Definition Classes
    Result
  21. def isSuccess: Boolean

    Permalink

    returns

    true if the result is a Success instance

    Definition Classes
    Result
  22. def isSuspended: Boolean

    Permalink

    returns

    true if the result is a Skipped or Pending

    Definition Classes
    Result
  23. def isThrownFailure: Boolean

    Permalink

    returns

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

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

    Permalink
    Definition Classes
    ResultStackTrace
  25. def location: String

    Permalink

    returns

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

    Definition Classes
    ResultStackTraceHasStackTrace
  26. val m: String

    Permalink
  27. def mapExpected(f: (String) ⇒ String): Result

    Permalink

    change this result's expected

    change this result's expected

    Definition Classes
    Result
  28. def mapMessage(f: (String) ⇒ String): Result

    Permalink

    change this result's message

    change this result's message

    Definition Classes
    Result
  29. val message: String

    Permalink
    Definition Classes
    Result
  30. def mute: Error

    Permalink

    returns

    the result with no message

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

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def prependMessage(pre: String): Result

    Permalink

    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
  35. def setExpectationsNb(n: Int): Error

    Permalink

    set the number of expectations

    set the number of expectations

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

    Permalink
    Definition Classes
    ErrorHasStackTrace
  37. def status: String

    Permalink

    returns

    the uncolored textual status of the result

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

    Permalink

    returns

    the textual status of the result

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

    Permalink
    Definition Classes
    AnyRef
  40. val t: Throwable

    Permalink
  41. def updateExpected(exp: String): Result

    Permalink

    update the expected of a result, keeping the subclass type

    update the expected of a result, keeping the subclass type

    Definition Classes
    Result
  42. def updateMessage(msg: String): Result

    Permalink

    update the message of a result, keeping the subclass type

    update the message of a result, keeping the subclass type

    Definition Classes
    Result
  43. final def wait(): Unit

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

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

    Permalink
    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