Skip to content

Commit

Permalink
[STYLE]: FailureCode static import로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Mar 5, 2024
1 parent f257ce1 commit ad0102c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import static com.smeem.common.code.failure.InternalServerFailureCode.SERVER_ERROR;
import static com.smeem.external.discord.DiscordAlarmCase.ERROR;

@RestControllerAdvice
Expand Down Expand Up @@ -72,7 +73,7 @@ public ResponseEntity<BaseResponse<?>> authException(AuthException exception) {
@ExceptionHandler(RuntimeException.class)
public ResponseEntity<BaseResponse<?>> baseException(RuntimeException exception) {
sendDiscordAlarm(exception);
return ApiResponseUtil.failure(InternalServerFailureCode.SERVER_ERROR);
return ApiResponseUtil.failure(SERVER_ERROR);
}

private void sendDiscordAlarm(RuntimeException exception) {
Expand Down

0 comments on commit ad0102c

Please sign in to comment.