Skip to content

Commit

Permalink
[Test] error handler 주석 추가 #232
Browse files Browse the repository at this point in the history
  • Loading branch information
wken5577 committed Oct 6, 2023
1 parent 49db87d commit 5fef4ff
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ protected ResponseEntity<ErrorResponse> httpRequestMethodNotSupportedExceptionHa
return new ResponseEntity<>(response, HttpStatus.INTERNAL_SERVER_ERROR);
}

@ExceptionHandler({RuntimeException.class})
public ResponseEntity<ErrorResponse> runtimeException(RuntimeException ex) {
log.error("처리되지 않은 에러입니다.", ex);
ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR);
return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus()));
}
// @ExceptionHandler({RuntimeException.class})
// public ResponseEntity<ErrorResponse> runtimeException(RuntimeException ex) {
// log.error("처리되지 않은 에러입니다.", ex);
// ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR);
// return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus()));
// }
@ExceptionHandler(HttpRequestMethodNotSupportedException.class)
protected ResponseEntity<ErrorResponse> httpRequestMethodNotSupportedExceptionHandle(HttpRequestMethodNotSupportedException ex) {
log.error("지원하지 않는 메소드 요청입니다.", ex.getMethod());
Expand Down

0 comments on commit 5fef4ff

Please sign in to comment.