java.lang.Object
java.lang.Throwable
java.lang.Exception
com.grack.nanojson.JsonParserException
- All Implemented Interfaces:
Serializable
Thrown when the
JsonParser encounters malformed JSON.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGets the 0-based character offset of the error from the beginning of the string.intGets the 1-based character position of the error.intGets the 1-based line position of the error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getLinePosition
public int getLinePosition()Gets the 1-based line position of the error. -
getCharPosition
public int getCharPosition()Gets the 1-based character position of the error. -
getCharOffset
public int getCharOffset()Gets the 0-based character offset of the error from the beginning of the string.
-