• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlin
6 
7 public interface Result<out T> {
8     public val value: T
9     public val isSuccess: Boolean
10     public val isFailure: Boolean
exceptionOrNullnull11     public fun exceptionOrNull(): Throwable?
12     public fun getOrNull(): T?
13     public fun getOrThrow(): T
14 }
15