org.springframework.beans

Class PropertyAccessException

    • Constructor Summary

      Constructors 
      Constructor and Description
      PropertyAccessException(java.beans.PropertyChangeEvent propertyChangeEvent, java.lang.String msg, java.lang.Throwable cause)
      Create a new PropertyAccessException.
      PropertyAccessException(java.lang.String msg, java.lang.Throwable cause)
      Create a new PropertyAccessException without PropertyChangeEvent.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract java.lang.String getErrorCode()
      Return a corresponding error code for this type of exception.
      java.beans.PropertyChangeEvent getPropertyChangeEvent()
      Return the PropertyChangeEvent that resulted in the problem.
      java.lang.String getPropertyName()
      Return the name of the affected property, if available.
      java.lang.Object getValue()
      Return the affected value that was about to be set, if any.
      • 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
    • Constructor Detail

      • PropertyAccessException

        public PropertyAccessException(java.beans.PropertyChangeEvent propertyChangeEvent,
                                       java.lang.String msg,
                                       @Nullable
                                       java.lang.Throwable cause)
        Create a new PropertyAccessException.
        Parameters:
        propertyChangeEvent - the PropertyChangeEvent that resulted in the problem
        msg - the detail message
        cause - the root cause
      • PropertyAccessException

        public PropertyAccessException(java.lang.String msg,
                                       @Nullable
                                       java.lang.Throwable cause)
        Create a new PropertyAccessException without PropertyChangeEvent.
        Parameters:
        msg - the detail message
        cause - the root cause
    • Method Detail

      • getPropertyChangeEvent

        @Nullable
        public java.beans.PropertyChangeEvent getPropertyChangeEvent()
        Return the PropertyChangeEvent that resulted in the problem.

        May be null; only available if an actual bean property was affected.

      • getPropertyName

        @Nullable
        public java.lang.String getPropertyName()
        Return the name of the affected property, if available.
      • getValue

        @Nullable
        public java.lang.Object getValue()
        Return the affected value that was about to be set, if any.
      • getErrorCode

        public abstract java.lang.String getErrorCode()
        Return a corresponding error code for this type of exception.