JsonException

Base type for all JSON-specific exceptions thrown by Json.

message always includes shortMessage. It typically also includes a hint and additional exception-specific information, such as JsonDecodingException.path.

The shortMessage is intended to be concise and aimed at the application users, while hint may contain actionable advice for the developer, e.g., enabling a specific configuration option.

Inheritors

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
abstract val hint: String?

optional suggestions for the developer that can help fix or diagnose the problem.

Link copied to clipboard
open override val message: String
Link copied to clipboard
abstract val shortMessage: String

short, human-readable description of the error.