org.springframework.beans
Class MethodInvocationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
org.springframework.beans.PropertyAccessException
org.springframework.beans.MethodInvocationException
- All Implemented Interfaces:
- ErrorCoded, java.io.Serializable
- public class MethodInvocationException
- extends PropertyAccessException
Thrown when a bean property getter or setter method throws an exception,
analogous to an InvocationTargetException.
- Author:
- Rod Johnson
- See Also:
- Serialized Form
Fields inherited from class java.lang.RuntimeException |
|
Constructor Summary |
MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Throwable ex)
Create a new MethodInvocationException. |
Method Summary |
java.lang.String |
getErrorCode()
Return the error code associated with this failure.
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodInvocationException
public MethodInvocationException(java.beans.PropertyChangeEvent propertyChangeEvent,
java.lang.Throwable ex)
- Create a new MethodInvocationException.
- Parameters:
propertyChangeEvent
- PropertyChangeEvent that resulted in an exceptionex
- Throwable raised by invoked method
getErrorCode
public java.lang.String getErrorCode()
- Description copied from interface:
ErrorCoded
- Return the error code associated with this failure.
The GUI can render this any way it pleases, allowing for localization etc.
- Returns:
- a String error code associated with this failure,
or null if not error-coded
Copyright (C) 2003-2004 The Spring Framework Project.