AsResult

object AsResult
Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[R : AsResult](r: => R): Result

nicer syntax to use the AsResult syntax: AsResult(r)

nicer syntax to use the AsResult syntax: AsResult(r)

def effectively[R : AsResult](r: => R): Result
Returns:

a Result but throw exceptions if it is not a success

def safely[R : AsResult](r: => R): Result
Returns:

a Result always, even when there are specs2 exceptions (when using ThrownExpectations)

Implicits

Implicits

implicit def asResult[R](implicit convert: R => Result): AsResult[R]

typeclass instance for types which are convertible to Result

typeclass instance for types which are convertible to Result

implicit def booleanAsResult: AsResult[Boolean]

implicit typeclass instance to create results from Booleans

implicit typeclass instance to create results from Booleans

implicit typeclass instance for error effect errors

implicit typeclass instance for error effect errors