Class ParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ParseException
    extends java.lang.RuntimeException
    An unchecked exception to indicate that an input does not qualify as valid JSON.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseException​(java.lang.String message, Location location)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Location getLocation()
      Returns the location at which the error occurred.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParseException

        public ParseException​(java.lang.String message,
                              Location location)
    • Method Detail

      • getLocation

        public Location getLocation()
        Returns the location at which the error occurred.
        Returns:
        the error location