Trait/Object

org.specs2.execute

ResultExecution

Related Docs: object ResultExecution | package execute

Permalink

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

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def effectively(result: ⇒ Result): Result

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def execute[T, R](code: ⇒ T)(convert: (T) ⇒ R)(implicit arg0: AsResult[R]): Result

    Permalink

    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

    Permalink

    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]

    Permalink

    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")): Product with Serializable with Either[Result, T]

    Permalink

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

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

    Permalink

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

  14. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. implicit def resultIsExecutable(r: ⇒ Result): ExecutableResult

    Permalink

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

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped