cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amania...@apache.org
Subject svn commit: r555452 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java
Date Thu, 12 Jul 2007 01:15:09 GMT
Author: amaniatis
Date: Wed Jul 11 18:15:08 2007
New Revision: 555452

URL: http://svn.apache.org/viewvc?view=rev&rev=555452
Log:
Add more informative validation failure messages which is particularly useful for ROP.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java?view=diff&rev=555452&r1=555451&r2=555452
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/validation/ValidationException.java
Wed Jul 11 18:15:08 2007
@@ -34,9 +34,9 @@
     public ValidationException(String message) {
         super(message);
     }
-    
+
     public ValidationException(ValidationResult result) {
-        this("Validation has failed.", result);
+        this("Validation failures: " + result.toString(), result);
     }
 
     public ValidationException(String message, ValidationResult result) {



Mime
View raw message