blob: d873ac8902d769fadfae5b4228d86d852704af66 [file] [log] [blame]
/*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlin
public interface Result<out T> {
public val value: T
public val isSuccess: Boolean
public val isFailure: Boolean
public fun exceptionOrNull(): Throwable?
public fun getOrNull(): T?
public fun getOrThrow(): T
}