Class PropertyAccessException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.beans.BeansException
                      extended by org.springframework.beans.PropertyAccessException
All Implemented Interfaces:
Serializable, ErrorCoded
Direct Known Subclasses:
MethodInvocationException, TypeMismatchException

public abstract class PropertyAccessException
extends BeansException
implements ErrorCoded

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

Rod Johnson, Juergen Hoeller
See Also:
Serialized Form

Constructor Summary
PropertyAccessException(PropertyChangeEvent propertyChangeEvent, String msg, Throwable cause)
          Create a new PropertyAccessException.
PropertyAccessException(String msg, Throwable cause)
          Create a new PropertyAccessException without PropertyChangeEvent.
Method Summary
 PropertyChangeEvent getPropertyChangeEvent()
          Return the PropertyChangeEvent that resulted in the problem.
Methods inherited from class org.springframework.beans.BeansException
equals, hashCode
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.core.ErrorCoded

Constructor Detail


public PropertyAccessException(PropertyChangeEvent propertyChangeEvent,
                               String msg,
                               Throwable cause)
Create a new PropertyAccessException.

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


public PropertyAccessException(String msg,
                               Throwable cause)
Create a new PropertyAccessException without PropertyChangeEvent.

msg - the detail message
cause - the root cause
Method Detail


public PropertyChangeEvent getPropertyChangeEvent()
Return the PropertyChangeEvent that resulted in the problem. May be null; only available if an actual bean property was affected.

Copyright © 2002-2008 The Spring Framework.