Browse Source

NotReadablePropertyException accepts root cause (analogous to NotWritablePropertyException)

Issue: SPR-12467
(cherry picked from commit feb91e8)
pull/710/head
Juergen Hoeller 11 years ago
parent
commit
58bea23f1d
  1. 14
      spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java

14
spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -47,4 +47,16 @@ public class NotReadablePropertyException extends InvalidPropertyException { @@ -47,4 +47,16 @@ public class NotReadablePropertyException extends InvalidPropertyException {
super(beanClass, propertyName, msg);
}
/**
* Create a new NotReadablePropertyException.
* @param beanClass the offending bean class
* @param propertyName the offending property
* @param msg the detail message
* @param cause the root cause
* @since 4.0.9
*/
public NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause) {
super(beanClass, propertyName, msg, cause);
}
}

Loading…
Cancel
Save