[bv-dev] Two improvements related to exceptions

Gunnar Morling gunnar at hibernate.org
Thu Feb 9 06:44:20 EST 2017


To take a break from the value extraction business, I've been working
on two small improvements related to the exception model:

* BVAL-559 [1]: This adds a new subtype of ValidationException,
NoProviderFoundException. This allows integrators to distinguish
between the case where no BV provider is around at all and the case
where a provider is there but fails to bootstrap (e.g. due to
misconfiguration in validation.xml). The use case for this is better
support for JPA's validation-mode "auto".
* BVAL-264 [2]: More useful exception message if a
ConstraintViolationException has been constructed from a set of

The API and spec changes can be found at [3] and [4], respectively.
Please speak up if you have any remarks. If nothing comes up, I'll
merge both PRs mid next week.

Thanks for any feedback,


[1] https://hibernate.atlassian.net/projects/BVAL/issues/BVAL-559
[2] https://hibernate.atlassian.net/projects/BVAL/issues/BVAL-264
[3] https://github.com/beanvalidation/beanvalidation-api/pull/82
[4] https://github.com/beanvalidation/beanvalidation-spec/pull/133

More information about the beanvalidation-dev mailing list