Top Description Fields Constructors Methods
org.springframework.beans

public Class MethodInvocationException

extends PropertyAccessException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.beans.PropertyChangeEvent

Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.
Author
Rod Johnson

Field Summary

Modifier and TypeField and Description
public static final String
ERROR_CODE

Error code that a method invocation error will be registered with.

Constructor Summary

AccessConstructor and Description
public
MethodInvocationException(PropertyChangeEvent
the PropertyChangeEvent that resulted in an exception
propertyChangeEvent
,
Throwable
the Throwable raised by the invoked method
cause
)

Create a new MethodInvocationException.

Method Summary

Modifier and TypeMethod and Description
public String
getErrorCode()

Implements abstract org.springframework.beans.PropertyAccessException.getErrorCode.

Return a corresponding error code for this type of exception.

Inherited from org.springframework.beans.PropertyAccessException:
getPropertyChangeEventgetPropertyNamegetValue

Field Detail

ERROR_CODEback to summary
public static final String ERROR_CODE

Error code that a method invocation error will be registered with.

Constructor Detail

MethodInvocationExceptionback to summary
public MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause)

Create a new MethodInvocationException.

Parameters
propertyChangeEvent:PropertyChangeEvent

the PropertyChangeEvent that resulted in an exception

cause:Throwable

the Throwable raised by the invoked method

Method Detail

getErrorCodeback to summary
public String getErrorCode()

Implements abstract org.springframework.beans.PropertyAccessException.getErrorCode.

Doc from org.springframework.beans.PropertyAccessException.getErrorCode.

Return a corresponding error code for this type of exception.

Annotations
@Override