From feb91e8366a5b95223ae32a8114a6c626a60cf6d Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 26 Nov 2014 11:52:55 +0100 Subject: [PATCH] NotReadablePropertyException accepts root cause (analogous to NotWritablePropertyException) Issue: SPR-12467 --- .../beans/NotReadablePropertyException.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java b/spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java index dbf55e883d..f15f3e8065 100644 --- a/spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java +++ b/spring-beans/src/main/java/org/springframework/beans/NotReadablePropertyException.java @@ -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 { 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); + } + }