Serializablepublic class JsonParsingException extends JsonException
JsonParsingException is used when an incorrect JSON is
being parsed.| Constructor | Description |
|---|---|
JsonParsingException(String message,
Throwable cause,
JsonLocation location) |
Constructs a new runtime exception with the specified detail message and
cause.
|
JsonParsingException(String message,
JsonLocation location) |
Constructs a new runtime exception with the specified detail message.
|
| Modifier and Type | Method | Description |
|---|---|---|
JsonLocation |
getLocation() |
Return the location of the incorrect JSON.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JsonParsingException(String message, JsonLocation location)
Throwable.initCause(java.lang.Throwable).message - the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage() method.location - the location of the incorrect JSONpublic JsonParsingException(String message, Throwable cause, JsonLocation location)
Note that the detail message associated with
cause is not automatically incorporated in
this runtime exception's detail message.
message - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)location - the location of the incorrect JSONpublic JsonLocation getLocation()
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : jsonp-spec@javaee.groups.io