Decoding

class Decoding(cause: Error) : ReadError

Content doesn't match what was expected and cannot be interpreted.

For instance, this error can be reported if a ZIP archive looks invalid, a publication doesn't conform to its format, or a JSON resource cannot be decoded.

Constructors

Link copied to clipboard
constructor(cause: Error)
constructor(message: String)
constructor(exception: Exception)

Properties

Link copied to clipboard
open override val cause: Error

The cause error or null if there is none.

Link copied to clipboard
open override val message: String

An error message.

Functions

Link copied to clipboard

Convenience function to get the description of an error with its cause.