Class JsonReadException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class JsonReadException
    extends java.lang.Exception
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String error  
      com.fasterxml.jackson.core.JsonLocation location  
      static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonReadException​(java.lang.String error, com.fasterxml.jackson.core.JsonLocation location)  
      JsonReadException​(java.lang.String error, com.fasterxml.jackson.core.JsonLocation location, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonReadException addArrayContext​(int index)  
      JsonReadException addFieldContext​(java.lang.String fieldName)  
      static JsonReadException fromJackson​(com.fasterxml.jackson.core.JsonProcessingException ex)  
      java.lang.String getMessage()  
      static void toStringLocation​(java.lang.StringBuilder buf, com.fasterxml.jackson.core.JsonLocation location)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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
    • Field Detail

      • error

        public final java.lang.String error
      • location

        public final com.fasterxml.jackson.core.JsonLocation location
    • Constructor Detail

      • JsonReadException

        public JsonReadException​(java.lang.String error,
                                 com.fasterxml.jackson.core.JsonLocation location)
      • JsonReadException

        public JsonReadException​(java.lang.String error,
                                 com.fasterxml.jackson.core.JsonLocation location,
                                 java.lang.Throwable cause)
    • Method Detail

      • addFieldContext

        public JsonReadException addFieldContext​(java.lang.String fieldName)
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • toStringLocation

        public static void toStringLocation​(java.lang.StringBuilder buf,
                                            com.fasterxml.jackson.core.JsonLocation location)
      • fromJackson

        public static JsonReadException fromJackson​(com.fasterxml.jackson.core.JsonProcessingException ex)