generated from pricelees/issue-pr-template
refactor: OrderExceptionHandler에서 예외 상태 코드에 따른 메시지 분기 처리 추가
This commit is contained in:
parent
ff516ef48f
commit
c76f6bba68
@ -25,7 +25,7 @@ class OrderExceptionHandler(
|
||||
val httpStatus: HttpStatus = errorCode.httpStatus
|
||||
val errorResponse = OrderErrorResponse(
|
||||
code = errorCode.errorCode,
|
||||
message = e.message,
|
||||
message = if (httpStatus.isClientError()) e.message else errorCode.message,
|
||||
trial = e.trial
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user