Class JSONParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.ralleytn.simple.json.JSONParseException
All Implemented Interfaces:
Serializable

public class JSONParseException extends Exception
Is thrown when an error occurs while parsing JSON data. Explains what the problem is.
Since:
1.0.0
Version:
2.1.0
Author:
FangYidong(fangyidong@yahoo.com.cn), Ralph Niemitz/RalleYTN(ralph.niemitz@gmx.de)
See Also:
  • Field Details

    • ERROR_UNEXPECTED_CHAR

      public static final int ERROR_UNEXPECTED_CHAR
      Since:
      1.0.0
      See Also:
    • ERROR_UNEXPECTED_TOKEN

      public static final int ERROR_UNEXPECTED_TOKEN
      Since:
      1.0.0
      See Also:
    • ERROR_UNEXPECTED_EXCEPTION

      public static final int ERROR_UNEXPECTED_EXCEPTION
      Since:
      1.0.0
      See Also:
  • Constructor Details

    • JSONParseException

      public JSONParseException(int errorType)
      Parameters:
      errorType - the error type
      Since:
      1.0.0
    • JSONParseException

      public JSONParseException(int errorType, Object unexpectedObject)
      Parameters:
      errorType - the error type
      unexpectedObject - the object that represents what was unexpected
      Since:
      1.0.0
    • JSONParseException

      public JSONParseException(int position, int errorType, Object unexpectedObject)
      Parameters:
      position - the character position (starting with 0) of the input where the error occurred
      errorType - the error type
      unexpectedObject - the object that represents what was unexpected
      Since:
      1.0.0
  • Method Details