use of org.dbflute.helper.beans.exception.DfBeanIllegalPropertyException in project dbflute-core by dbflute.
the class DfPropertyDescImpl method throwPropertyReadFailureException.
protected void throwPropertyReadFailureException(Object target, RuntimeException e) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Failed to read the property.");
setupExceptionBasicInfo(br);
br.addItem("Target Object");
br.addElement(target != null ? target.getClass() : null);
br.addElement(target);
final String msg = br.buildExceptionMessage();
throw new DfBeanIllegalPropertyException(msg, e);
}
use of org.dbflute.helper.beans.exception.DfBeanIllegalPropertyException in project dbflute-core by dbflute.
the class DfPropertyDescImpl method throwPropertyWriteFailureException.
protected void throwPropertyWriteFailureException(Object target, Object value, RuntimeException e) {
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Failed to write the property.");
setupExceptionBasicInfo(br);
br.addItem("Target Object");
br.addElement(target != null ? target.getClass() : null);
br.addElement(target);
br.addItem("Wrote Object");
br.addElement(value != null ? value.getClass() : null);
br.addElement(value);
final String msg = br.buildExceptionMessage();
throw new DfBeanIllegalPropertyException(msg, e);
}
Aggregations