refactor: OrderExceptionHandler에서 예외 상태 코드에 따른 메시지 분기 처리 추가

This commit is contained in:
이상진 2025-10-09 15:12:27 +09:00
parent ff516ef48f
commit c76f6bba68

View File

@ -25,7 +25,7 @@ class OrderExceptionHandler(
val httpStatus: HttpStatus = errorCode.httpStatus val httpStatus: HttpStatus = errorCode.httpStatus
val errorResponse = OrderErrorResponse( val errorResponse = OrderErrorResponse(
code = errorCode.errorCode, code = errorCode.errorCode,
message = e.message, message = if (httpStatus.isClientError()) e.message else errorCode.message,
trial = e.trial trial = e.trial
) )