-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- 에러를 동일하게 처리하고 있음
- API문서를 활용해서 상황별 에러를 구분할 필요가 있음
try {
return restTemplate.postForObject(TossPaymentConfig.CONFIRM_URL,
new HttpEntity<>(params, headers),
TosspaymentDto.class);
} catch (HttpClientErrorException e) {
return e.getResponseBodyAs(TosspaymentDto.class);
} catch (Exception e) {
log.error("e.getMessage() = " + e.getMessage());
throw new BusinessLogicException(ExceptionCode.TOSS_PAYMENT_SUCCESS_FAIL);
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request