Class JsonParserException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.grack.nanojson.JsonParserException
All Implemented Interfaces:
Serializable

public class JsonParserException extends Exception
Thrown when the JsonParser encounters malformed JSON.
See Also:
  • 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.