Package org.json.simple.parser
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.json.simple.parser.ParseException
- All Implemented Interfaces:
Serializable
Deprecated.
since 2.0.0, copied to a new package.
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 intDeprecated.description omitted.static final intDeprecated.description omitted.static final intDeprecated.description omitted. -
Constructor Summary
ConstructorsConstructorDescriptionParseException(int errorType) Deprecated.ParseException(int position, int errorType, Object unexpectedObject) Deprecated.ParseException(int errorType, Object unexpectedObject) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Action on data for a result.Deprecated.intDeprecated.Deprecated.voidsetErrorType(int errorType) Deprecated.Action on data for a result.voidsetPosition(int position) Deprecated.Action on data for a result.voidsetUnexpectedObject(Object unexpectedObject) Deprecated.Action on data for a result.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_UNEXPECTED_CHAR
Deprecated.description omitted.- See Also:
-
ERROR_UNEXPECTED_TOKEN
Deprecated.description omitted.- See Also:
-
ERROR_UNEXPECTED_EXCEPTION
Deprecated.description omitted.- See Also:
-
-
Constructor Details
-
ParseException
Deprecated.- Parameters:
errorType- description omitted.
-
ParseException
Deprecated.- Parameters:
errorType- description omitted.unexpectedObject- description omitted.
-
ParseException
Deprecated.- Parameters:
position- description omitted.errorType- description omitted.unexpectedObject- description omitted.
-
-
Method Details
-
getErrorType
Deprecated.Action on data for a result.- Returns:
- description omitted.
-
setErrorType
Deprecated.Action on data for a result.- Parameters:
errorType- description omitted.
-
getPosition
Deprecated.- Returns:
- The character position (starting with 0) of the input where the error occurs.
- See Also:
-
setPosition
Deprecated.Action on data for a result.- Parameters:
position- description omitted.
-
getUnexpectedObject
Deprecated.- 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.Action on data for a result.- Parameters:
unexpectedObject- description omitted.
-
getMessage
Deprecated.- Overrides:
getMessagein classThrowable
-