Question
Bernving
Bernving
NL
Bernving
Posted: Sep 21, 2017
Last activity: Sep 22, 2017
Last activity: 22 Sep 2017 4:57 EDT
Closed
Solved
Database Exception not catched in try catch block in an activity wotj a Java step
The following Java code is part of a loop in an activity:
Show More
The following Java code is part of a loop in an activity:
ClipboardPage sp = tools.getStepPage();
try {
tools.getDatabase().save(sp, false, false, true);
} catch (DatabaseException ex) {
oLog.infoForced("Problem updating DB instance " + sp.getString("pzInsKey") + ":" + ex.toString(), ex);
}
Fails as seen in the tracer is:
Step Status | FAIL |
Step Status Info |
** String was not a date "132520907" |
Now this error is OK as it indeed is no date value. My problems is that the catch block is not executed as I expected. How come?
Show Less