ResultLogicalCombinators

This trait provides logical combinators to Results: and, or, not

A Result expression can throw an exception which will be changed into a failure or an error before being used with and/or/not

Companion:
object
trait Results
class Object
trait Matchable
class Any

Type members

Classlikes

Value members

Inherited methods

def booleanToSimpleResult(b: Boolean): Result
Inherited from:
Results
Inherited from:
Results
def negateWhen(condition: Boolean)(r: Result): Result
Inherited from:
Results

Implicits

Implicits

implicit def combineBoolean(b: => Boolean): ResultLogicalCombinator

Inherited implicits

implicit def toResult(b: Boolean): Result

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

implicit definition to accept any boolean value as a Result This avoids writing b must beTrue

Inherited from:
Results