public class JSONException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
JSONException(java.lang.String message,
int line,
int column)
Construct an exception with the message, line and column number.
|
JSONException(java.lang.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.
|
java.lang.String |
toString()
Returns a string describing the error.
|
public JSONException(java.lang.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(java.lang.String message,
int line,
int column)
message - - the message to reportline - - the line number of the errorcolumn - - the column number of the errorpublic int line()
public int column()
public java.lang.String toString()
toString in class java.lang.Throwable