Author: hardy.ferentschik
Date: 2009-06-18 13:17:48 -0400 (Thu, 18 Jun 2009)
New Revision: 16838
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintValidatorFactoryImpl.java
Log:
Made sure RuntimeException during Validator creating is wrapped
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintValidatorFactoryImpl.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintValidatorFactoryImpl.java 2009-06-18
17:17:16 UTC (rev 16837)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintValidatorFactoryImpl.java 2009-06-18
17:17:48 UTC (rev 16838)
@@ -25,6 +25,7 @@
* Default <code>ConstraintValidatorFactory</code> using a no-arg
constructor.
*
* @author Emmanuel Bernard
+ * @author Hardy Ferentschik
*/
public class ConstraintValidatorFactoryImpl implements ConstraintValidatorFactory {
@@ -41,5 +42,8 @@
catch ( IllegalAccessException e ) {
throw new ValidationException( "Unable to instanciate " + key, e );
}
+ catch ( RuntimeException e ) {
+ throw new ValidationException( "Unable to instanciate " + key, e );
+ }
}
}
Show replies by date