public class ParseException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_UNEXPECTED_CHAR
description omitted.
|
static int |
ERROR_UNEXPECTED_EXCEPTION
description omitted.
|
static int |
ERROR_UNEXPECTED_TOKEN
description omitted.
|
Constructor and Description |
---|
ParseException(int errorType) |
ParseException(int position,
int errorType,
java.lang.Object unexpectedObject) |
ParseException(int errorType,
java.lang.Object unexpectedObject) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorType()
Action on data for a result.
|
java.lang.String |
getMessage() |
int |
getPosition() |
java.lang.Object |
getUnexpectedObject() |
void |
setErrorType(int errorType)
Action on data for a result.
|
void |
setPosition(int position)
Action on data for a result.
|
void |
setUnexpectedObject(java.lang.Object unexpectedObject)
Action on data for a result.
|
public static final int ERROR_UNEXPECTED_CHAR
public static final int ERROR_UNEXPECTED_TOKEN
public static final int ERROR_UNEXPECTED_EXCEPTION
public ParseException(int errorType)
errorType
- description omitted.public ParseException(int errorType, java.lang.Object unexpectedObject)
errorType
- description omitted.unexpectedObject
- description omitted.public ParseException(int position, int errorType, java.lang.Object unexpectedObject)
position
- description omitted.errorType
- description omitted.unexpectedObject
- description omitted.public int getErrorType()
public void setErrorType(int errorType)
errorType
- description omitted.public int getPosition()
JSONParser.getPosition()
public void setPosition(int position)
position
- description omitted.public java.lang.Object getUnexpectedObject()
Yytoken
public void setUnexpectedObject(java.lang.Object unexpectedObject)
unexpectedObject
- description omitted.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable