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





------- Additional Comments From [EMAIL PROTECTED]  2003-11-10 19:11 -------
Well,  I'm about to attach two patches.  The first is for the test cases, to 
generate exceptions during the test process.  The second, of course, is for 
the source, to "properly" handle those exceptions.  

The assumptions I made:
1) Validator.validate SHOULD ONLY return false if the data proved to be 
invalid, not if there was an exception in the process of validating the data.
2) Runtime exceptions are propagated as is.  
3) ValidatorExceptions are propagated as is.
4) Other checked exceptions are transformed to ValidatorExceptions

I wasn't able to remove instanceof checks completely - I have to use them when 
examining the "TargetException" wrapped by the InvocationTargetException.  

Take a look....

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to