public class ParseErrorEx
extends java.lang.Exception
Modifier | Constructor and Description |
---|---|
|
ParseErrorEx()
Creates an empty ParseError exception.
|
protected |
ParseErrorEx(java.lang.String jsonStr,
int pos,
java.lang.String errStr)
Creates a ParseError exception and sets the members for showing the error
position and the cause of the error.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrMsg()
Returns a multi line error message string with the original string to parse
in the first line and a pointer where the error was detected in the second
line and the error in the last line.
|
int |
getErrPos()
Returns the error position in the JSON object.
|
java.lang.String |
getErrStr()
Returns the error message.
|
public ParseErrorEx()
protected ParseErrorEx(java.lang.String jsonStr, int pos, java.lang.String errStr)
jsonStr
- The original string to parse causing the error.pos
- The index in jsonStr where the error is detected.errStr
- A string describing the cause of the error.public int getErrPos()
public java.lang.String getErrStr()
public java.lang.String getErrMsg()