NotReadablePropertyException accepts root cause (analogous to NotWritablePropertyException)

Issue: SPR-12467
master
Juergen Hoeller 10 years ago
parent ab5856b6a8
commit feb91e8366
  1. 14
      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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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); 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