Skip to content

Commit

Permalink
Merge pull request #36 from ansforge/bug/33_add_top_catcher_for_async…
Browse files Browse the repository at this point in the history
…_process

Bug/33 add top catcher for async process
  • Loading branch information
edegenetais-nx authored and Eric Degenetais committed Jun 18, 2024
1 parent 7cb306d commit c799ff5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,18 @@ public ResponseEntity<?> generateExtract(@RequestParam(required = false) Integer
else {
emailService.sendSimpleMessage("PSCEXTRACT - sécurisation échouée", null);
}
} catch (IOException e) {
} catch (Exception e) {
log.error("Exception raised :", e);
emailService.sendSimpleMessage("PSCEXTRACT - sécurisation échouée", null);
} catch (Error e) {
log.error("Exception raised :", e);
try {
log.error("Exception raised :", e);
emailService.sendSimpleMessage("PSCEXTRACT - sécurisation échouée", null);
} catch (Exception mailEx) {
e.addSuppressed(mailEx);
}
throw e;
} finally {
busy = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public File extractToCsv(ExtractionController extractionController) throws IOExc
zos.finish();

} catch (NoSuchAlgorithmException ex) {
throw new RuntimeException("No SHA256 digest support in the current java runtime - please fix this.",ex);
throw new RuntimeException("No SHA256 digest support in the current java runtime - please fix this."+ex.getMessage(),ex);
}

if (tempExtractFile.delete()) {
Expand Down

0 comments on commit c799ff5

Please sign in to comment.