blob: 5fe48cb76e0b45b9045b83caa9ee7336c6990f69 [file] [log] [blame]
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlin
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
}