diff --git a/backend/vkt/src/main/java/fi/oph/vkt/config/ControllerExceptionAdvice.java b/backend/vkt/src/main/java/fi/oph/vkt/config/ControllerExceptionAdvice.java index 620a8d397..a9b2e9316 100644 --- a/backend/vkt/src/main/java/fi/oph/vkt/config/ControllerExceptionAdvice.java +++ b/backend/vkt/src/main/java/fi/oph/vkt/config/ControllerExceptionAdvice.java @@ -50,7 +50,7 @@ public ResponseEntity handleOptimisticLockException(final OptimisticLock @ExceptionHandler(NoResourceFoundException.class) @ResponseStatus(HttpStatus.NOT_FOUND) - public ResponseEntity handleNoResourceFoundException(final NotFoundException ex) { + public ResponseEntity handleNoResourceFoundException(final NoResourceFoundException ex) { LOG.error("NoResourceFoundException: " + ex.getMessage()); return notFound(); }