public final class JsonSyntaxException extends Exception
JsonSyntaxException indicates that a JsonPullParser or a
JsonPushParser encountered a JSON syntax error while parsing a JSON
document.| Constructor and Description |
|---|
JsonSyntaxException(JsonSyntaxError error,
int line,
int column,
String past,
String future)
Creates a new
JsonSyntaxException for the given components. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column in the JSON document, where the syntax error occurred.
|
JsonSyntaxError |
getError()
Returns the syntax error.
|
String |
getFuture()
Returns a few characters from the parsed character stream, that come
after the syntax error, if already cached.
|
int |
getLine()
Returns the line in the JSON document, where the syntax error occurred.
|
String |
getMessage() |
String |
getPast()
Returns a few characters from the parsed character stream, that came
before the syntax error, if still cached.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic JsonSyntaxException(JsonSyntaxError error, int line, int column, String past, String future)
JsonSyntaxException for the given components.error - The syntax error.line - The line of the syntax error.column - The column of the syntax errorpast - A few characters from the parsed character stream, that came
before the syntax error.future - a few characters from the parsed character stream, that come
after the syntax error.public String getMessage()
getMessage in class Throwablepublic JsonSyntaxError getError()
public int getLine()
public int getColumn()
public String getPast()
public String getFuture()
Copyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.