isFailure

val isFailure: Boolean

True if the result is an error, false otherwise.