Class InvalidPropertyPathException

All Implemented Interfaces:
Serializable

public class InvalidPropertyPathException extends PropertyAccessException
Exception thrown when a property path is not well-formed according to the grammar implemented by PropertyPath.

This signals a syntactically invalid path, as opposed to a syntactically valid path that happens not to resolve against a particular target object. The latter cases are reported as NotReadablePropertyException or NotWritablePropertyException instead.

Extends PropertyAccessException so that a malformed path encountered while binding a single property value can be collected into a PropertyBatchUpdateException alongside other per-property failures, rather than aborting the whole binding operation.

Since:
7.1
Author:
Brian Clozel
See Also:
  • Field Details

    • ERROR_CODE

      public static final String ERROR_CODE
      Error code that an InvalidPropertyPathException is registered with.
      See Also:
  • Constructor Details

    • InvalidPropertyPathException

      public InvalidPropertyPathException(String propertyPath, String reason)
      Create a new InvalidPropertyPathException.
      Parameters:
      propertyPath - the offending property path
      reason - a description of the grammar rule that was violated
    • InvalidPropertyPathException

      public InvalidPropertyPathException(PropertyChangeEvent propertyChangeEvent, InvalidPropertyPathException cause)
      Create a new InvalidPropertyPathException.
      Parameters:
      propertyChangeEvent - the event for the property
      cause - the original parsing exception
    • InvalidPropertyPathException

      public InvalidPropertyPathException(Object source, String propertyName, @Nullable Object newValue, InvalidPropertyPathException cause)
      Create a new InvalidPropertyPathException.
      Parameters:
      source - the bean that fired the event
      propertyName - the programmatic name of the property that was changed
      newValue - the new value of the property
      cause - the original parsing exception
  • Method Details