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
- public class MethodInvocationException
- extends PropertyAccessException
Thrown when a method getter or setter throws an exception,
analogous to an InvocationTargetException.
- Author:
- Rod Johnson
- Version: $Revision: 1.4 $
| Constructor Summary |
MethodInvocationException(Throwable ex, PropertyChangeEvent propertyChangeEvent) Constructor to use when an exception results from a PropertyChangeEvent. |
MethodInvocationException(Throwable ex, String methodName) Constructor to use when an exception results from a method invocation,
and there is no PropertyChangeEvent. |
| Methods inherited from class java.lang.Throwable |
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause |
| Methods inherited from class java.lang.Object |
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals |
MethodInvocationException
public MethodInvocationException(Throwable ex, PropertyChangeEvent propertyChangeEvent)
- Constructor to use when an exception results from a PropertyChangeEvent.
- Parameters:
- ex - Throwable raised by invoked method
- propertyChangeEvent - PropertyChangeEvent that resulted in an exception
MethodInvocationException
public MethodInvocationException(Throwable ex, String methodName)
- Constructor to use when an exception results from a method invocation,
and there is no PropertyChangeEvent.
- Parameters:
- ex - Throwable raised by invoked method
- methodName - name of the method we were trying to invoke
getErrorCode
public String getErrorCode()