failureResult

fun <T> FakeContext.failureResult(exception: FakeContext.() -> Throwable = { IllegalStateException("Generated failure for ${type.displayName}") }): Result<T>

Generates a failed result from exception.