}
}
catch (Exception e) {
LOG.error("Exception thrown applying constraint [" + constraintName +
"] to class [" + owningClass + "] for value [" + constrainingValue + "]: " + e.getMessage(), e);
throw new ConstraintException("Exception thrown applying constraint [" + constraintName +
"] to class [" + owningClass + "] for value [" + constrainingValue + "]: " + e.getMessage(), e);
}
}
}
else if (bean.isWritableProperty(constraintName)) {
bean.setPropertyValue(constraintName, constrainingValue);
}
else {
throw new ConstraintException("Constraint [" + constraintName + "] is not supported for property [" +
propertyName + "] of class [" + owningClass + "] with type [" + propertyType + "]");
}
}