[ 1679692 ] fireDocValidate doesn't treat exceptions as errors

http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1679692&group_id=176962
This commit is contained in:
teo_sarca 2007-03-23 18:39:45 +00:00
parent 17e0d5c294
commit 96396c0d8c
1 changed files with 6 additions and 1 deletions

View File

@ -286,7 +286,12 @@ public class ModelValidationEngine
}
catch (Exception e)
{
log.log(Level.SEVERE, validator.toString(), e);
// Exeptions are errors and should stop the document processing - teo_sarca [ 1679692 ]
// log.log(Level.SEVERE, validator.toString(), e);
String error = e.getMessage();
if (error == null)
error = e.toString();
return error;
}
}
return null;