Class JSONSyntaxError

All Implemented Interfaces:
Serializable

public class JSONSyntaxError extends JSONError
Signalled during JSONReader operation to indicate problems with the input JSON text.
See Also:
  • Constructor Details

    • JSONSyntaxError

      public JSONSyntaxError(String message, int lineNumber)
      Construct a syntax error report exception.
      Parameters:
      message - Description of the error condition.
      lineNumber - Approximate line number of the error condition in the input.
  • Method Details

    • getLineNumber

      public int getLineNumber()
      Returns:
      The line number associated with this error report.