trait ResultExecution extends AnyRef

This trait executes a Result and returns an appropriate value when a specs2 exception is thrown

Self Type
ResultExecution
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultExecution
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class ExecutableResult extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def effectively(result: ⇒ Result): Result

    execute a Result and rethrow any exception or throws an exception if it is not a success

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def execute[T, R](code: ⇒ T)(convert: (T) ⇒ R)(implicit arg0: AsResult[R]): Result

    execute a piece of code and return a result:

    execute a piece of code and return a result:

    • if the code already returns a result, just keep it
    • if the code throws an Exception return an Error
    • if the code returns a value of type T, convert it to a result
  10. def execute(result: ⇒ Result): Result

    execute a Result and return a Result even if there are specs2 exceptions

  11. def executeEither[T, R](code: ⇒ T)(implicit convert: (T) ⇒ R): Either[Result, R]

    execute a piece of code and return a result, either as a Left(failure) or a Right(value)

  12. def executeProperty[T](prop: Property[T], default: Result = Success("no value")): Either[Result, T]

    execute a Property returning the value if it exists and a Success result otherwise

  13. def executeThrowable(res: ⇒ Result): Either[Result, Result]

    execute a result and return either as a Left(result) if something was thrown or a Right(result)

  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def handleExceptionsPurely: PartialFunction[Throwable, Result]

    handle result exceptions and do not rethrow them

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. implicit def resultIsExecutable(r: ⇒ Result): ExecutableResult

    this implicit allows the execution of a Result with an execute method

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped