java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jooq.tools.json.ParseException
- All Implemented Interfaces:
- Serializable
ParseException explains why and where the error occurs in source JSON text.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsConstructorDescriptionParseException(int errorType) ParseException(int position, int errorType, Object unexpectedObject) ParseException(int errorType, Object unexpectedObject) 
- 
Method SummaryModifier and TypeMethodDescriptionintintvoidsetErrorType(int errorType) voidsetPosition(int position) voidsetUnexpectedObject(Object unexpectedObject) Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
ERROR_UNEXPECTED_CHARpublic static final int ERROR_UNEXPECTED_CHAR- See Also:
 
- 
ERROR_UNEXPECTED_TOKENpublic static final int ERROR_UNEXPECTED_TOKEN- See Also:
 
- 
ERROR_UNEXPECTED_EXCEPTIONpublic static final int ERROR_UNEXPECTED_EXCEPTION- See Also:
 
 
- 
- 
Constructor Details- 
ParseExceptionpublic ParseException(int errorType) 
- 
ParseException
- 
ParseException
 
- 
- 
Method Details- 
getErrorTypepublic int getErrorType()
- 
setErrorTypepublic void setErrorType(int errorType) 
- 
getPositionpublic int getPosition()- Returns:
- The character position (starting with 0) of the input where the error occurs.
- See Also:
 
- 
setPositionpublic void setPosition(int position) 
- 
getUnexpectedObject- Returns:
- One of the following base on the value of errorType: ERROR_UNEXPECTED_CHAR java.lang.Character ERROR_UNEXPECTED_TOKEN org.json.simple.parser.Yytoken ERROR_UNEXPECTED_EXCEPTION java.lang.Exception
- See Also:
 
- 
setUnexpectedObject
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
 
-