Skip to content

Commit

Permalink
AKR:OTR:VKT:YKI(Backend): Fix handleNoResourceFoundException argument…
Browse files Browse the repository at this point in the history
… type [deploy]
  • Loading branch information
pkoivisto committed Feb 12, 2025
1 parent 4773208 commit 2fcc099
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResponseEntity<Object> handleOptimisticLockException(final OptimisticLock

@ExceptionHandler(NoResourceFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ResponseEntity<Object> handleNoResourceFoundException(final NotFoundException ex) {
public ResponseEntity<Object> handleNoResourceFoundException(final NoResourceFoundException ex) {
LOG.error("NoResourceFoundException: " + ex.getMessage());
return notFound();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResponseEntity<Object> handleOptimisticLockException(final OptimisticLock

@ExceptionHandler(NoResourceFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ResponseEntity<Object> handleNoResourceFoundException(final NotFoundException ex) {
public ResponseEntity<Object> handleNoResourceFoundException(final NoResourceFoundException ex) {
LOG.error("NoResourceFoundException: " + ex.getMessage());
return notFound();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResponseEntity<Object> handleOptimisticLockException(final OptimisticLock

@ExceptionHandler(NoResourceFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ResponseEntity<Object> handleNoResourceFoundException(final NotFoundException ex) {
public ResponseEntity<Object> handleNoResourceFoundException(final NoResourceFoundException ex) {
LOG.error("NoResourceFoundException: " + ex.getMessage());
return notFound();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.slf4j.LoggerFactory;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.data.crossstore.ChangeSetPersister;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMessageNotReadableException;
Expand Down Expand Up @@ -42,7 +41,7 @@ public void handleClientAbortException(final ClientAbortException ex) {

@ExceptionHandler(NoResourceFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ResponseEntity<Object> handleNoResourceFoundException(final ChangeSetPersister.NotFoundException ex) {
public ResponseEntity<Object> handleNoResourceFoundException(final NoResourceFoundException ex) {
LOG.error("NoResourceFoundException: " + ex.getMessage());
return notFound();
}
Expand Down

0 comments on commit 2fcc099

Please sign in to comment.