Class JSONSyntaxError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.leastfixedpoint.json.JSONError
com.leastfixedpoint.json.JSONSyntaxError
- All Implemented Interfaces:
Serializable
Signalled during JSONReader operation to indicate problems with the input JSON text.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONSyntaxError
(String message, int lineNumber) Construct a syntax error report exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JSONSyntaxError
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.
-