From d650114418e7e072b7cd6f0e02ede588e7fff0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zai=20M=C3=BCller-Zhang?= <97607180+zhangzai123@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:54:03 +0100 Subject: [PATCH] Fix ambiguous exception handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zai Müller-Zhang <97607180+zhangzai123@users.noreply.github.com> --- .../digitaltwin/basyx/http/BaSyxExceptionHandler.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/basyx.common/basyx.http/src/main/java/org/eclipse/digitaltwin/basyx/http/BaSyxExceptionHandler.java b/basyx.common/basyx.http/src/main/java/org/eclipse/digitaltwin/basyx/http/BaSyxExceptionHandler.java index 4c87ae80e..ab850c6d8 100644 --- a/basyx.common/basyx.http/src/main/java/org/eclipse/digitaltwin/basyx/http/BaSyxExceptionHandler.java +++ b/basyx.common/basyx.http/src/main/java/org/eclipse/digitaltwin/basyx/http/BaSyxExceptionHandler.java @@ -95,12 +95,6 @@ public ResponseEntity handleFeatureNotSupportedException(FeatureNotSuppor public ResponseEntity handleNotInvokableException(NotInvokableException exception) { return new ResponseEntity<>(HttpStatus.METHOD_NOT_ALLOWED); } - - - @ExceptionHandler(FileDoesNotExistException.class) - public ResponseEntity handleFileDoesNotExistException(FileDoesNotExistException exception) { - return new ResponseEntity<>(HttpStatus.NOT_FOUND); - } @ExceptionHandler(ElementNotAFileException.class) public ResponseEntity handleNotInvokableException(ElementNotAFileException exception) {