Skip to content

Commit

Permalink
Improved exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Sep 19, 2023
1 parent bb530d9 commit 969c437
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public Response firmaConvocazioni(@Context HttpServletRequest req, @FormParam("q
} catch (IOException e) {
LOGGER.error(e.getMessage(), e);
rb = Response.status(Status.INTERNAL_SERVER_ERROR);
} catch (ArubaSignServiceException e) {
} catch (Exception e) {
rb = Response.status(Status.INTERNAL_SERVER_ERROR).entity(
Collections.singletonMap("message", Utility.signErrorMessage(e.getMessage()))
);
Expand Down Expand Up @@ -422,7 +422,7 @@ public Response firmaComunicazioni(@Context HttpServletRequest req, @FormParam("
} catch (IOException e) {
LOGGER.error(e.getMessage(), e);
rb = Response.status(Status.INTERNAL_SERVER_ERROR);
} catch (ArubaSignServiceException e) {
} catch (Exception e) {
rb = Response.status(Status.INTERNAL_SERVER_ERROR).entity(
Collections.singletonMap("message", Utility.signErrorMessage(e.getMessage()))
);
Expand Down

0 comments on commit 969c437

Please sign in to comment.