Skip to content

Commit

Permalink
[Test] exception 주석후 테스트 해보기#232
Browse files Browse the repository at this point in the history
  • Loading branch information
wken5577 committed Oct 6, 2023
1 parent e42c434 commit 49db87d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ protected ResponseEntity<ErrorResponse> httpRequestMethodNotSupportedExceptionHa
ErrorResponse response = new ErrorResponse(ErrorCode.METHOD_NOT_ALLOWED);
return new ResponseEntity<>(response, HttpStatus.METHOD_NOT_ALLOWED);
}
@ExceptionHandler(Exception.class)
public ResponseEntity<ErrorResponse> handleException(Exception ex) {
log.error("!!!!!! SERVER ERROR !!!!!!", ex.getMessage());
ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR);
return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus()));
}
// @ExceptionHandler(Exception.class)
// public ResponseEntity<ErrorResponse> handleException(Exception ex) {
// log.error("!!!!!! SERVER ERROR !!!!!!", ex.getMessage());
// ErrorResponse response = new ErrorResponse(ErrorCode.INTERNAL_SERVER_ERR);
// return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatus()));
// }

}

0 comments on commit 49db87d

Please sign in to comment.