diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java b/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java index 3ed99bed..232088d6 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java @@ -69,7 +69,7 @@ public class BaseController { } - @ExceptionHandler(Exception.class) + @ExceptionHandler(ImportUnexpectedException.class) @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody public String handleImportErrors(@NotNull ImportUnexpectedException ex, @NotNull HttpServletRequest request) {