data class Failure : WebcomResult<Nothing>
Represents a failed computation with an error that originated the failure.
val error: WebcomError
Error that made the computation fail. |
|
val failureError: WebcomError?
Gets the error of computation when failed, or |
fun get(): Nothing
Gets the result of computation when successful, throws otherwise. |
|
fun getOrElse(default: Nothing): Nothing
Gets the result of the computation when successful, or a given default value otherwise. |
|
fun getOrNull(): Nothing?
Gets the result of the computation when successful, or |
|
fun isSuccess(): Boolean
Indicates whether the computation was successful. |
|
fun <U> map(f: (Nothing) -> U): WebcomResult<U>
Maps the result of this computation using the given f function. |