Error

data class Error(val exception: Throwable, val message: String = exception.message ?: "Unknown error") : ParseResult

Failed parsing result containing error information.

Constructors

Link copied to clipboard
constructor(exception: Throwable, message: String = exception.message ?: "Unknown error")

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the data if successful, or null if failed.

Link copied to clipboard

Returns the data if successful, or throws the contained exception if failed.

Link copied to clipboard

Returns true if the result is an error.

Link copied to clipboard

Returns true if the result is successful.