当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
MethodInvocationException (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
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:
- Serializable, ErrorCoded
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
Field Summary |
static String |
ERROR_CODE
Error code that a method invocation error will be registered with. |
ERROR_CODE
public static final String ERROR_CODE
- Error code that a method invocation error will be registered with.
- See Also:
- Constant Field Values
MethodInvocationException
public MethodInvocationException(PropertyChangeEvent propertyChangeEvent,
Throwable cause)
- Create a new MethodInvocationException.
- Parameters:
propertyChangeEvent
- PropertyChangeEvent that resulted in an exceptioncause
- the Throwable raised by the invoked method
getErrorCode
public 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 © 2002-2007 The Spring Framework.