Package rife.json

Class JsonParseException

All Implemented Interfaces:
Serializable

public class JsonParseException extends RuntimeException
Thrown when a JSON document couldn't be parsed, reporting the exact location of the problem.
Since:
1.10
See Also:
  • Constructor Details

    • JsonParseException

      public JsonParseException(String message, int line, int column)
      Creates a new parse exception.
      Parameters:
      message - the description of the parse problem
      line - the line number where the problem occurred
      column - the column number where the problem occurred
      Since:
      1.10
  • Method Details

    • getLine

      public int getLine()
      Retrieves the line number where the parse problem occurred.
      Returns:
      the line number, starting at 1
      Since:
      1.10
    • getColumn

      public int getColumn()
      Retrieves the column number where the parse problem occurred.
      Returns:
      the column number, starting at 1
      Since:
      1.10