Skip to content

Commit

Permalink
minor fix in exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Yerish26 committed May 13, 2024
1 parent c048de4 commit f619fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public ResponseEntity<String> handleConversationNotFoundException(
}

@ExceptionHandler(UnauthorizedException.class)
public ResponseEntity<String> handleUnAuthorized(UnauthorizedException unAuthorizedException) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(unAuthorizedException.getMessage());
public ResponseEntity<String> handleUnAuthorized(UnauthorizedException unauthorizedException) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(unauthorizedException.getMessage());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ResponseEntity<String> handleAuthenticationException(AuthenticationException aut
}

@ExceptionHandler(UnauthorizedException.class)
public ResponseEntity<String> handleUnAuthorized(UnauthorizedException unAuthorizedException) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(unAuthorizedException.getMessage());
public ResponseEntity<String> handleUnauthorized(UnauthorizedException unauthorizedException) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED).body(unauthorizedException.getMessage());
}
}

0 comments on commit f619fa7

Please sign in to comment.