Details
-
Bug
-
Status: Done
-
High
-
Resolution: Fixed
-
3.0.3
-
None
-
PC Sprint 16
-
0
Description
The current error handling in the method runJob in ImportJobRunner is not working properly as it catches any potential error (all Throwable) but do not verifies that every single operation executed in the error handling is done safely:
catch (Throwable e) {
// capture Throwable just in case... Sometimes while developing we might get things like
// ClassNotDefFound errors and the like
result.getFinalResult().setReturnCode(importProcess.getProcessErrorCode());
Exception newExcp;
if (e instanceof Exception)
else
{ newExcp = new UnexpectedProjectConfigPluginException(e); } result.getFinalResult().addError(newExcp.getMessage(), null, newExcp);
}