Class JsonProcessingException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    JsonGenerationException, JsonMappingException, JsonParseException

    public class JsonProcessingException
    extends java.io.IOException
    Intermediate base class for all problems encountered when processing (parsing, generating) JSON content that are not pure I/O problems. Regular IOExceptions will be passed through as is. Sub-class of IOException for convenience.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonLocation getLocation()  
      java.lang.String getMessage()
      Default method overridden so that we can add location information
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • JsonProcessingException

        protected JsonProcessingException​(java.lang.String msg,
                                          JsonLocation loc,
                                          java.lang.Throwable rootCause)
      • JsonProcessingException

        protected JsonProcessingException​(java.lang.String msg)
      • JsonProcessingException

        protected JsonProcessingException​(java.lang.String msg,
                                          JsonLocation loc)
      • JsonProcessingException

        protected JsonProcessingException​(java.lang.String msg,
                                          java.lang.Throwable rootCause)
      • JsonProcessingException

        protected JsonProcessingException​(java.lang.Throwable rootCause)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Default method overridden so that we can add location information
        Overrides:
        getMessage in class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable