print stack trace when lookup of model validation class failed

This commit is contained in:
Heng Sin Low 2010-07-07 18:33:42 +08:00
parent 30592896e0
commit 84bcf74e36
1 changed files with 83 additions and 86 deletions

View File

@ -96,8 +96,7 @@ public class ModelValidationEngine
} catch (Exception e)
{
//logging to db will try to init ModelValidationEngine again!
//log.warning(e.getLocalizedMessage());
// System.err.println(e.getLocalizedMessage());
e.printStackTrace();
missingModelValidationMessage = missingModelValidationMessage + e.toString() + " global" + '\n';
}
@ -135,8 +134,7 @@ public class ModelValidationEngine
catch (Exception e)
{
//logging to db will try to init ModelValidationEngine again!
//log.log(Level.SEVERE, className + ": " + e.getMessage());
// System.err.println(className + ": " + e.getMessage());
e.printStackTrace();
missingModelValidationMessage = missingModelValidationMessage + e.toString() + " on client " + client.getName() + '\n';
}
}
@ -153,8 +151,7 @@ public class ModelValidationEngine
catch (Exception e)
{
//logging to db will try to init ModelValidationEngine again!
//log.log(Level.SEVERE, className + ": " + e.getMessage());
// System.err.println(e.toString());
e.printStackTrace();
missingModelValidationMessage = missingModelValidationMessage + e.toString() +
(client != null ? (" on client " + client.getName()) : " global") + '\n';
}