All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IgnoredPropertyException, UnrecognizedPropertyException

public abstract class PropertyBindingException extends MismatchedInputException
Base class for JsonMappingExceptions that are specifically related to problems related to binding an individual property.
Since:
2.3
See Also:
  • Field Details

    • _referringClass

      protected final Class<?> _referringClass
      Class that does not contain mapping for the unrecognized property.
    • _propertyName

      protected final String _propertyName

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

    • _propertyIds

      protected final Collection<Object> _propertyIds
      Set of ids of properties that are known for the type, if this can be statically determined.
    • _propertiesAsString

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

  • Method Details

    • getMessageSuffix

      public String getMessageSuffix()
      Description copied from class: JsonProcessingException
      Accessor that sub-classes can override to append additional information right after the main message, but before source location information.
      Overrides:
      getMessageSuffix in class JsonProcessingException
      Returns:
      Message suffix assigned, if any; null if none
    • getReferringClass

      public Class<?> getReferringClass()
      Method for accessing type (class) that is missing definition to allow binding of the unrecognized property.
    • getPropertyName

      public String getPropertyName()
      Convenience method for accessing logical property name that could not be mapped. Note that it is the last path reference in the underlying path.
    • getKnownPropertyIds

      public Collection<Object> getKnownPropertyIds()