You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/11/03 23:40:02 UTC

DO NOT REPLY [Bug 24369] New: - Validator.validate() exception handling for ValidatorException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24369>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24369

Validator.validate() exception handling for ValidatorException

           Summary: Validator.validate() exception handling for
                    ValidatorException
           Product: Commons
           Version: 1.0.2
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: janet.moyer@ibx.com


If a validator method throws a ValidatorException, the expected behavior is 
that Validator.validate() will rethrow the exception.  The actual behavior is 
that a "false" is returned instead.  This masks exceptions as rule failures.   

Users of the framework need to be able to distinguish between failure to pass a 
validation rule versus an exception that occurs while executing a rule.  
Failure to pass validation is a "normal" occurrance that is correctible by 
changing the data.  An exception that occurs while executing a rule is not 
normal, could be caused by a configuration problem or other system problem, and 
cannot be corrected by corrections to the data.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org