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
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ResultExecution
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class ExecutableResult extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
effectively(result: ⇒ Result): Result
execute a Result and rethrow any exception or throws an exception if it is not a success
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
def
execute(result: ⇒ Result): Result
execute a Result and return a Result even if there are specs2 exceptions
-
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)
-
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
-
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)
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handleExceptionsPurely: PartialFunction[Throwable, Result]
handle result exceptions and do not rethrow them
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
implicit
def
resultIsExecutable(r: ⇒ Result): ExecutableResult
this implicit allows the execution of a Result with an
execute
method -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )