Skip to content

Commit

Permalink
Fix ambiguous exception handling
Browse files Browse the repository at this point in the history
Signed-off-by: Zai Müller-Zhang <[email protected]>
  • Loading branch information
zhangzai123 committed Dec 1, 2023
1 parent 80d1bc0 commit d650114
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ public <T> ResponseEntity<T> handleFeatureNotSupportedException(FeatureNotSuppor
public <T> ResponseEntity<T> handleNotInvokableException(NotInvokableException exception) {
return new ResponseEntity<>(HttpStatus.METHOD_NOT_ALLOWED);
}


@ExceptionHandler(FileDoesNotExistException.class)
public <T> ResponseEntity<T> handleFileDoesNotExistException(FileDoesNotExistException exception) {
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
}

@ExceptionHandler(ElementNotAFileException.class)
public <T> ResponseEntity<T> handleNotInvokableException(ElementNotAFileException exception) {
Expand Down

0 comments on commit d650114

Please sign in to comment.