Skip to content

Commit feb91e8

Browse files
committed
NotReadablePropertyException accepts root cause (analogous to NotWritablePropertyException)
Issue: SPR-12467
1 parent ab5856b commit feb91e8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

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

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,4 +47,16 @@ public NotReadablePropertyException(Class<?> beanClass, String propertyName, Str
4747
super(beanClass, propertyName, msg);
4848
}
4949

50+
/**
51+
* Create a new NotReadablePropertyException.
52+
* @param beanClass the offending bean class
53+
* @param propertyName the offending property
54+
* @param msg the detail message
55+
* @param cause the root cause
56+
* @since 4.0.9
57+
*/
58+
public NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause) {
59+
super(beanClass, propertyName, msg, cause);
60+
}
61+
5062
}

0 commit comments

Comments
 (0)