public class JSONException extends RuntimeException
| Constructor and Description |
|---|
JSONException(String message,
int line,
int column)
Construct an exception with the message, line and column number.
|
JSONException(Throwable cause,
int line,
int column)
Construct an exception with the exception, line and column number.
|
| Modifier and Type | Method and Description |
|---|---|
int |
column()
Returns the column number of where the error occurred.
|
int |
line()
Returns the line number of where the error occurred.
|
String |
toString()
Returns a string describing the error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic JSONException(Throwable cause, int line, int column)
cause - - the cause of the errorline - - the line number of the errorcolumn - - the column number of the errorpublic JSONException(String message, int line, int column)
message - - the message to reportline - - the line number of the errorcolumn - - the column number of the errorCopyright © 2025. All rights reserved.