Skip to content

Commit

Permalink
[FIX] GlobalExceptionHandler commented out
Browse files Browse the repository at this point in the history
for debugging
  • Loading branch information
c0smosaur authored May 30, 2024
1 parent c46c56b commit 57438c2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public ResponseEntity<BaseResponse<T>> exception(BaseException exception) {
}

// 커스텀으로 처리되지 않은 예외 처리
@ExceptionHandler(value = Exception.class)
public ResponseEntity<BaseResponse<T>> exception(Exception exception) {
log.error("InternalServerError occurred: error message: {}",
exception.getMessage());
// @ExceptionHandler(value = Exception.class)
// public ResponseEntity<BaseResponse<T>> exception(Exception exception) {
// log.error("InternalServerError occurred: error message: {}",
// exception.getMessage());

return ResponseEntity
.internalServerError()
.body(BaseResponse.response(BaseResponseStatus.SERVER_ERROR));
}
// return ResponseEntity
// .internalServerError()
// .body(BaseResponse.response(BaseResponseStatus.SERVER_ERROR));
// }
}

0 comments on commit 57438c2

Please sign in to comment.