Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Seddik Yengui committed Jan 25, 2024
1 parent 95f9f86 commit e554bd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class RestResponseEntityExceptionHandler {
protected ResponseEntity<Object> handleSensibilityAnalysisException(SensibilityAnalysisException exception) {
return switch (exception.getType()) {
case RESULT_NOT_FOUND -> ResponseEntity.status(HttpStatus.NOT_FOUND).body(exception.getMessage());
case FILE_EXPORT_ERROR, INVALID_EXPORT_PARAMS -> ResponseEntity.status(HttpStatus.BAD_REQUEST).body(exception.getMessage());
case FILE_EXPORT_ERROR -> ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(exception.getMessage());
case INVALID_EXPORT_PARAMS -> ResponseEntity.status(HttpStatus.BAD_REQUEST).body(exception.getMessage());
default -> ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
};
}
Expand Down

0 comments on commit e554bd9

Please sign in to comment.