java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jooq.tools.json.ParseException
- All Implemented Interfaces:
Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be
removed without replacement. Please use any other JSON parser,
instead - e.g. Jackson.
ParseException explains why and where the error occurs in source JSON text.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionParseException
(int errorType) Deprecated, for removal: This API element is subject to removal in a future version.ParseException
(int position, int errorType, Object unexpectedObject) Deprecated, for removal: This API element is subject to removal in a future version.ParseException
(int errorType, Object unexpectedObject) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.void
setErrorType
(int errorType) Deprecated, for removal: This API element is subject to removal in a future version.void
setPosition
(int position) Deprecated, for removal: This API element is subject to removal in a future version.void
setUnexpectedObject
(Object unexpectedObject) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_UNEXPECTED_CHAR
public static final int ERROR_UNEXPECTED_CHARDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ERROR_UNEXPECTED_TOKEN
public static final int ERROR_UNEXPECTED_TOKENDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
ERROR_UNEXPECTED_EXCEPTION
public static final int ERROR_UNEXPECTED_EXCEPTIONDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
ParseException
public ParseException(int errorType) Deprecated, for removal: This API element is subject to removal in a future version. -
ParseException
Deprecated, for removal: This API element is subject to removal in a future version. -
ParseException
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getErrorType
public int getErrorType()Deprecated, for removal: This API element is subject to removal in a future version. -
setErrorType
public void setErrorType(int errorType) Deprecated, for removal: This API element is subject to removal in a future version. -
getPosition
public int getPosition()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The character position (starting with 0) of the input where the error occurs.
- See Also:
-
setPosition
public void setPosition(int position) Deprecated, for removal: This API element is subject to removal in a future version. -
getUnexpectedObject
Deprecated, for removal: This API element is subject to removal in a future version.- 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
Deprecated, for removal: This API element is subject to removal in a future version. -
getMessage
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getMessage
in classThrowable
-