Module org.jooq

Class ParseException

  • All Implemented Interfaces:
    Serializable

    public class ParseException
    extends Exception
    ParseException explains why and where the error occurs in source JSON text.
    Author:
    FangYidong<fangyidong@yahoo.com.cn>
    See Also:
    Serialized Form
    • Constructor Detail

      • ParseException

        public ParseException​(int errorType)
      • ParseException

        public ParseException​(int errorType,
                              Object unexpectedObject)
      • ParseException

        public ParseException​(int position,
                              int errorType,
                              Object unexpectedObject)
    • Method Detail

      • getErrorType

        public int getErrorType()
      • setErrorType

        public void setErrorType​(int errorType)
      • getPosition

        public int getPosition()
        Returns:
        The character position (starting with 0) of the input where the error occurs.
        See Also:
        JSONParser.getPosition()
      • setPosition

        public void setPosition​(int position)
      • getUnexpectedObject

        public Object 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:
        Yytoken
      • setUnexpectedObject

        public void setUnexpectedObject​(Object unexpectedObject)