Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.espertech.esper.common.client.json.minimaljson.ParseException
- All Implemented Interfaces:
Serializable
An unchecked exception to indicate that an input does not qualify as valid JSON.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.int
getLine()
Deprecated.UsegetLocation()
insteadReturns the location at which the error occurred.int
Deprecated.UsegetLocation()
insteadMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getLocation
Returns the location at which the error occurred.- Returns:
- the error location
-
getOffset
Deprecated.UsegetLocation()
insteadReturns the absolute character index at which the error occurred. The offset of the first character of a document is 0.- Returns:
- the character offset at which the error occurred, will be >= 0
-
getLine
Deprecated.UsegetLocation()
insteadReturns the line number in which the error occurred. The number of the first line is 1.- Returns:
- the line in which the error occurred, will be >= 1
-
getColumn
Deprecated.UsegetLocation()
insteadReturns the column number at which the error occurred, i.e. the number of the character in its line. The number of the first character of a line is 1.- Returns:
- the column in which the error occurred, will be >= 1
-
getLocation()
instead