Json Data Exception
Thrown when the data in a JSON document doesn't match the data expected by the caller. For example, suppose the application expects a boolean but the JSON document contains a string. When the call to nextBoolean is made, a {@code JsonDataException}
is thrown.
Exceptions of this type should be fixed by either changing the application code to accept the unexpected JSON, or by changing the JSON to conform to the application's expectations.
This exception may also be triggered if a document's nesting exceeds 31 levels. This depth is sufficient for all practical applications, but shallow enough to avoid uglier failures like StackOverflowError.
Constructors
JsonDataException
Link copied to clipboard
open fun JsonDataException()
Content copied to clipboard
JsonDataException
Link copied to clipboard
JsonDataException
Link copied to clipboard
JsonDataException
Link copied to clipboard
open fun JsonDataException(@Nullable() message: String, @Nullable() cause: Throwable)
Content copied to clipboard
Functions
addSuppressed
Link copied to clipboard
fillInStackTrace
Link copied to clipboard
getLocalizedMessage
Link copied to clipboard
getMessage
Link copied to clipboard
getStackTrace
Link copied to clipboard
getSuppressed
Link copied to clipboard
printStackTrace
Link copied to clipboard
open fun printStackTrace()
Content copied to clipboard
setStackTrace
Link copied to clipboard