Class IgnoredPropertyException

All Implemented Interfaces:
Serializable

public class IgnoredPropertyException extends PropertyBindingException
Specialized JsonMappingException sub-class used to indicate case where an explicitly ignored property is encountered, and mapper is configured to consider this an error.
Since:
2.3
See Also:
  • Constructor Details

    • IgnoredPropertyException

      public IgnoredPropertyException(com.fasterxml.jackson.core.JsonParser p, String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
      Since:
      2.7
    • IgnoredPropertyException

      @Deprecated public IgnoredPropertyException(String msg, com.fasterxml.jackson.core.JsonLocation loc, Class<?> referringClass, String propName, Collection<Object> propertyIds)
      Deprecated.
      Since 2.7
  • Method Details

    • from

      public static IgnoredPropertyException from(com.fasterxml.jackson.core.JsonParser p, Object fromObjectOrClass, String propertyName, Collection<Object> propertyIds)
      Factory method used for constructing instances of this exception type.
      Parameters:
      p - Underlying parser used for reading input being used for data-binding
      fromObjectOrClass - Reference to either instance of problematic type ( if available), or if not, type itself
      propertyName - Name of unrecognized property
      propertyIds - (optional, null if not available) Set of properties that type would recognize, if completely known: null if set cannot be determined.