1 16 17 package org.springframework.beans; 18 19 import java.beans.PropertyChangeEvent ; 20 21 27 public class MethodInvocationException extends PropertyAccessException { 28 29 32 public static final String ERROR_CODE = "methodInvocation"; 33 34 35 40 public MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause) { 41 super(propertyChangeEvent, "Property '" + propertyChangeEvent.getPropertyName() + "' threw exception", cause); 42 } 43 44 public String getErrorCode() { 45 return ERROR_CODE; 46 } 47 48 } 49 | Popular Tags |