BF [ 1976350 ] ModelValidatorEngine should use getLocalizedMessage

This commit is contained in:
teo_sarca 2008-05-28 10:54:09 +00:00
parent f0406c132e
commit 0f4d1721ff
1 changed files with 3 additions and 3 deletions

View File

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