Skip to content

Commit

Permalink
chore: ExceptionHandler 예외 클래스 변경
Browse files Browse the repository at this point in the history
chore: ExceptionHandler 예외 클래스 변경
  • Loading branch information
pushedrumex authored Jul 5, 2024
2 parents a824314 + 757d98b commit badde75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public ResponseEntity<ErrorResponse> handleBusinessException(BusinessException e
return ResponseEntity.status(exception.getStatusCode()).body(new ErrorResponse(exception.getMessage()));
}

@ExceptionHandler(RuntimeException.class)
public ResponseEntity<ErrorResponse> handleException(RuntimeException exception) {
@ExceptionHandler(Exception.class)
public ResponseEntity<ErrorResponse> handleException(Exception exception) {
String exName = exception.getClass().getSimpleName();
String exMessage = exception.getMessage();
log.error("[Exception] exName=[{}] exMessage=[{}]", exName, exMessage);
Expand Down

0 comments on commit badde75

Please sign in to comment.