Skip to content

Commit

Permalink
Add @ExceptionHandler for notification transmission exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Jul 16, 2024
1 parent f7280a3 commit 4984fa8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public final ResponseEntity<ErrorDetails> handleInvalidNotificationDetailsExcept
return handleEntityWithoutCause(ex, request);
}

@ExceptionHandler(MessageTransmitException.class)
public final ResponseEntity<ErrorDetails> handleMessageTransmitException(Exception ex, WebRequest request) {
return handleEntityWithCause(ex, request);
}

@ExceptionHandler(InvalidUserDetailsException.class)
public final ResponseEntity<ErrorDetails> handleInvalidUserDetailsException(Exception ex, WebRequest request) {
return handleEntityWithCause(ex, request);
Expand Down

0 comments on commit 4984fa8

Please sign in to comment.