Skip to content

Commit

Permalink
[REVERT] "[FEAT] Exception Handler 에서 Exception.class 에 대한 처리" (#108)
Browse files Browse the repository at this point in the history
## Revert 사유
- Exception handling 과정에서, 해당 시점에 catch 되지 말아야할 error (`@Secured` 에러와 같은
것들) 까지 catch 되어 처리되고 있음.

Reverts #105
  • Loading branch information
JuneParkCode authored Aug 23, 2024
1 parent 0f35016 commit 7a9d67f
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ 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 7a9d67f

Please sign in to comment.