Companion

object Companion

Functions

Link copied to clipboard
inline fun <T> failure(exception: Throwable): DecodingResult<T>

Returns an instance that encapsulates the given Throwable as failure.

Link copied to clipboard
inline fun <T> schemaMismatch(jsonElement: JsonElement, exception: SerializationException): DecodingResult<T>

Returns an instance that encapsulates the given jsonElement and Throwable as schema mismatch.

Link copied to clipboard
inline fun <T> success(value: T): DecodingResult<T>

Returns an instance that encapsulates the given value as successful value.