Skip to content

Commit

Permalink
[FEAT] Exception Handler 에서 Exception.class 에 대한 처리 (#105)
Browse files Browse the repository at this point in the history
Closes #101
  • Loading branch information
JuneParkCode authored Aug 23, 2024
1 parent 5c8a24b commit ddce1e4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public ResponseEntity<String> handleInvalidEnumCodeException(InvalidEnumCodeExce
return new ResponseEntity<>(INTERNAL_SERVER_ERROR_MESSAGE, HttpStatus.INTERNAL_SERVER_ERROR);
}

@ExceptionHandler(Exception.class)
public ResponseEntity<String> handleException(Exception exception) {
log.error("Exception: {}", exception.getMessage());
return new ResponseEntity<>(INTERNAL_SERVER_ERROR_MESSAGE, HttpStatus.INTERNAL_SERVER_ERROR);
}

@Deprecated
@ExceptionHandler(HttpBaseException.class)
public ResponseEntity<ApiRespDto<Void>> handleHttpException(HttpBaseException exception) {
Expand Down

0 comments on commit ddce1e4

Please sign in to comment.