Class PropertyBindingException

    • Field Detail

      • _referringClass

        protected final java.lang.Class<?> _referringClass
        Class that has the problem with mapping of a property (unrecognized, missing, etc).
      • _propertyName

        protected final java.lang.String _propertyName
        Name of property that has the problem being reported.

        Note: possibly redundant information since it may also included in the reference path.

      • _propertyIds

        protected final java.util.Collection<java.lang.Object> _propertyIds
        Set of ids of properties that are known for the type (see _referringClass, if ids can be statically determined.
      • _propertiesAsString

        protected transient java.lang.String _propertiesAsString
        Lazily constructed description of known properties, used for constructing actual message if and as needed.
    • Constructor Detail

      • PropertyBindingException

        protected PropertyBindingException​(com.fasterxml.jackson.core.JsonParser p,
                                           java.lang.String msg,
                                           com.fasterxml.jackson.core.JsonLocation loc,
                                           java.lang.Class<?> referringClass,
                                           java.lang.String propName,
                                           java.util.Collection<java.lang.Object> propertyIds)
        Since:
        2.7
      • PropertyBindingException

        @Deprecated
        protected PropertyBindingException​(java.lang.String msg,
                                           com.fasterxml.jackson.core.JsonLocation loc,
                                           java.lang.Class<?> referringClass,
                                           java.lang.String propName,
                                           java.util.Collection<java.lang.Object> propertyIds)
        Deprecated.
        Since 2.7
    • Method Detail

      • getMessageSuffix

        public java.lang.String getMessageSuffix()
        Overrides:
        getMessageSuffix in class com.fasterxml.jackson.core.JsonProcessingException
      • getReferringClass

        public java.lang.Class<?> getReferringClass()
        Method for accessing type (class) that has the problematic property.
      • getPropertyName

        public java.lang.String getPropertyName()
        Convenience method for accessing logical property name that could not be mapped (see _propertyName). Note that it is likely the last path reference in the underlying path (but not necessarily, depending on the type of problem).
      • getKnownPropertyIds

        public java.util.Collection<java.lang.Object> getKnownPropertyIds()