diff --git a/src/main/java/app/coronawarn/quicktest/controller/QuickTestArchiveController.java b/src/main/java/app/coronawarn/quicktest/controller/QuickTestArchiveController.java index 516e71fa..43ee79af 100644 --- a/src/main/java/app/coronawarn/quicktest/controller/QuickTestArchiveController.java +++ b/src/main/java/app/coronawarn/quicktest/controller/QuickTestArchiveController.java @@ -138,6 +138,8 @@ public ResponseEntity findArchivesByTestResultAndU response.setQuickTestArchives(quickTestArchiveResponses); log.info("quicktest found successfully."); return ResponseEntity.ok(response); + } catch (ResponseStatusException e) { + throw e; } catch (Exception e) { log.debug("Couldn't execute findArchivesByTestResultAndUpdatedAtBetween." + " Message: {}", e.getMessage()); diff --git a/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java b/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java index 9bc330e8..e8f8d6be 100644 --- a/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java +++ b/src/main/java/app/coronawarn/quicktest/controller/QuickTestController.java @@ -89,6 +89,9 @@ public ResponseEntity getQuickTestsForTenantIdAndPocId() QuickTestResponseList response = new QuickTestResponseList(); response.setQuickTests(quickTests); return ResponseEntity.ok(response); + } catch (ResponseStatusException e) { + log.debug("Respondstatus error information getQuickTests: ", e); + throw e; } catch (Exception e) { log.error("Failed to find pending quicktests"); log.debug("Extended error information getQuickTests: ", e); diff --git a/src/main/java/app/coronawarn/quicktest/controller/QuickTestStatisticsController.java b/src/main/java/app/coronawarn/quicktest/controller/QuickTestStatisticsController.java index 7e5479a7..d5f90a8c 100644 --- a/src/main/java/app/coronawarn/quicktest/controller/QuickTestStatisticsController.java +++ b/src/main/java/app/coronawarn/quicktest/controller/QuickTestStatisticsController.java @@ -95,6 +95,8 @@ public ResponseEntity getQuicktestStatistics( quickTestStatisticsService.getStatistics(utilities.getIdsFromToken(), utcDateFrom, utcDateTo), QuickTestStatisticsResponse.class); return ResponseEntity.ok(quickTestStatisticsResponse); + } catch (ResponseStatusException e) { + throw e; } catch (Exception e) { log.error("Couldn't execute getQuicktestStatistics."); throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR);