Skip to content

Commit 2f86464

Browse files
committed
fix: restore original code with only log.error added to handleException
1 parent 8cbc935 commit 2f86464

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

โ€Žsrc/main/java/org/runnect/server/common/advice/ControllerExceptionAdvice.javaโ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected ApiResponseDto handleConstraintViolationException(final ConstraintViol
5252
return ApiResponseDto.error(ErrorStatus.VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION, String.format("%s. (%s)", ErrorStatus.VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION.getMessage(), e.getConstraintViolations()));
5353
}
5454

55-
@ResponseStatus(HttpStatus.BAD_REEUEST)
55+
@ResponseStatus(HttpStatus.BAD_REQUEST)
5656
@ExceptionHandler(IllegalArgumentException.class)
5757
protected ApiResponseDto handleConstraintViolationException(final IllegalArgumentException e) {
5858
return ApiResponseDto.error(ErrorStatus.VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION, String.format("%s. (%s)", ErrorStatus.INVALID_PARAMETER_EXCEPTION.getMessage(), e.getMessage()));
@@ -61,7 +61,7 @@ protected ApiResponseDto handleConstraintViolationException(final IllegalArgumen
6161
@ResponseStatus(HttpStatus.BAD_REQUEST)
6262
@ExceptionHandler(MissingServletRequestParameterException.class)
6363
protected ApiResponseDto handleMissingRequestParameterException(final MissingServletRequestParameterException e) {
64-
returnApiResponseDto.error(ErrorStatus.VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION, String.format("%s. (%s)", ErrorStatus.VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION.getMessage(), e.getParameterName()));
64+
return ApiResponseDto.error(ErrorStatus.VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION, String.format("%s. (%s)", ErrorStatus.VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION.getMessage(), e.getParameterName()));
6565
}
6666

6767

@@ -77,12 +77,12 @@ protected ApiResponseDto<Object> handleException(final Exception error, final Ht
7777
try {
7878
slackApi.sendAlert(error, request);
7979
} catch (Exception e) {
80-
log.error("Slack ์•Œ๋ฆผ ์ „์†  ์‹คํŒจ", e);
80+
log.error("Slack ์•Œ๋ฆผ ์ „์†ก ์‹คํŒจ", e);
8181
}
8282
try {
8383
Sentry.captureException(error);
8484
} catch (Exception e) {
85-
log.error("Sentry ์ „์†  ์‹คํŒจ", e);
85+
log.error("Sentry ์ „์†ก ์‹คํŒจ", e);
8686
}
8787
return ApiResponseDto.error(ErrorStatus.INTERNAL_SERVER_ERROR);
8888
}

0 commit comments

Comments
ย (0)