isFailure

Returns true if this Outcome is a Failure.


infix inline fun <Ok, Error> Outcome<Ok, Error>.isFailure(predicate: (Error) -> Boolean): Boolean

Returns true if this is a Failure and predicate returns true for the error.

Returns false if this is a Success, or if predicate returns false.