public final class JsonDataException extends RuntimeException
JsonReader.nextBoolean() is made, a 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.
| Constructor and Description |
|---|
JsonDataException() |
JsonDataException(String message) |
JsonDataException(String message,
Throwable cause) |
JsonDataException(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2017. All Rights Reserved.