public abstract class

PropertyAccessException

extends BeansException
implements ErrorCoded
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.beans.BeansException
             ↳ org.springframework.beans.PropertyAccessException
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Superclass for exceptions related to a property access, such as type mismatch or invocation target exception.

Summary

Public Constructors
PropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, Throwable cause)
Create a new PropertyAccessException.
PropertyAccessException(String msg, Throwable cause)
Create a new PropertyAccessException without PropertyChangeEvent.
Public Methods
PropertyChangeEvent getPropertyChangeEvent()
Return the PropertyChangeEvent that resulted in the problem.
String getPropertyName()
Return the name of the affected property, if available.
Object getValue()
Return the affected value that was about to be set, if any.
[Expand]
Inherited Methods
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object
From interface org.springframework.core.ErrorCoded

Public Constructors

public PropertyAccessException (PropertyChangeEvent propertyChangeEvent, String msg, Throwable cause)

Also: SpringBeans

Create a new PropertyAccessException.

Parameters
propertyChangeEvent the PropertyChangeEvent that resulted in the problem
msg the detail message
cause the root cause

public PropertyAccessException (String msg, Throwable cause)

Also: SpringBeans

Create a new PropertyAccessException without PropertyChangeEvent.

Parameters
msg the detail message
cause the root cause

Public Methods

public PropertyChangeEvent getPropertyChangeEvent ()

Also: SpringBeans

Return the PropertyChangeEvent that resulted in the problem.

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

public String getPropertyName ()

Also: SpringBeans

Return the name of the affected property, if available.

public Object getValue ()

Also: SpringBeans

Return the affected value that was about to be set, if any.