类 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
- 所有已实现的接口:
Serializable
,ErrorCoded
public class MethodInvocationException extends PropertyAccessException
Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.- 作者:
- Rod Johnson
- 另请参阅:
- 序列化表格
字段概要
字段 修饰符和类型 字段 说明 static String
ERROR_CODE
Error code that a method invocation error will be registered with.
构造器概要
构造器 构造器 说明 MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause)
Create a new MethodInvocationException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getErrorCode()
Return a corresponding error code for this type of exception.从类继承的方法 org.springframework.beans.PropertyAccessException
getPropertyChangeEvent, getPropertyName, getValue
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
字段详细资料
ERROR_CODE
public static final String ERROR_CODE
Error code that a method invocation error will be registered with.- 另请参阅:
- 常量字段值
构造器详细资料
MethodInvocationException
public MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause)
Create a new MethodInvocationException.- 参数:
propertyChangeEvent
- PropertyChangeEvent that resulted in an exceptioncause
- the Throwable raised by the invoked method
方法详细资料
getErrorCode
public String getErrorCode()
从类复制的说明:PropertyAccessException
Return a corresponding error code for this type of exception.- 指定者:
getErrorCode
在接口中ErrorCoded
- 指定者:
getErrorCode
在类中PropertyAccessException
- 返回:
- a String error code associated with this failure, or
null
if not error-coded