org.springframework.beans
Class MethodInvocationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.core.NestedRuntimeException
                  extended byorg.springframework.beans.BeansException
                      extended byorg.springframework.beans.PropertyAccessException
                          extended byorg.springframework.beans.MethodInvocationException
All Implemented Interfaces:
ErrorCoded, java.io.Serializable

public class MethodInvocationException
extends PropertyAccessException

Thrown when a method getter or setter throws an exception, analogous to an InvocationTargetException.

Version:
$Revision: 1.6 $
Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
MethodInvocationException(java.lang.Throwable ex, java.beans.PropertyChangeEvent propertyChangeEvent)
          Constructor to use when an exception results from a PropertyChangeEvent.
 
Method Summary
 java.lang.String getErrorCode()
          Return the error code associated with this failure.
 
Methods inherited from class org.springframework.beans.PropertyAccessException
getPropertyChangeEvent
 
Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace
 
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
 

Constructor Detail

MethodInvocationException

public MethodInvocationException(java.lang.Throwable ex,
                                 java.beans.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
Method Detail

getErrorCode

public java.lang.String getErrorCode()
Description copied from interface: ErrorCoded
Return the error code associated with this failure. The GUI can render this anyway it pleases, allowing for Int8ln etc.

Returns:
a String error code associated with this failure, or null if not error-coded


Copyright (C) 2003-2004 The Spring Framework Project.