incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r959696 - /incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java
Date Thu, 01 Jul 2010 15:34:42 GMT
Author: simonetripodi
Date: Thu Jul  1 15:34:41 2010
New Revision: 959696

URL: http://svn.apache.org/viewvc?rev=959696&view=rev
Log:
re-thrown exception is ConstraintViolationException by default

Modified:
    incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java

Modified: incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java
URL: http://svn.apache.org/viewvc/incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java?rev=959696&r1=959695&r2=959696&view=diff
==============================================================================
--- incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java (original)
+++ incubator/bval/trunk/bval-guice/src/main/java/org/apache/bval/guice/Validate.java Thu
Jul  1 15:34:41 2010
@@ -21,6 +21,8 @@ import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
+import javax.validation.ConstraintViolationException;
+
 import com.google.inject.BindingAnnotation;
 
 /**
@@ -54,6 +56,6 @@ public @interface Validate {
      * @return the exception re-thrown when an error occurs during the
      *         validation.
      */
-    Class<? extends Throwable> rethrowExceptionsAs() default Exception.class;
+    Class<? extends Throwable> rethrowExceptionsAs() default ConstraintViolationException.class;
 
 }



Mime
View raw message