From fa6464c97f108520fda4aabaf9a02f9bf21ffba1 Mon Sep 17 00:00:00 2001 From: pricelees Date: Wed, 23 Jul 2025 16:55:08 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=83=88=EB=A1=9C=EC=9A=B4=20?= =?UTF-8?q?=EC=BB=A4=EC=8A=A4=ED=85=80=20=EC=98=88=EC=99=B8=EC=99=80?= =?UTF-8?q?=EC=9D=98=20=ED=98=B8=ED=99=98=EC=84=B1=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20=EC=98=88=EC=99=B8=20=ED=83=80=EC=9E=85=EC=9D=84=20?= =?UTF-8?q?=EC=9E=84=EC=8B=9C=EB=A1=9C=20Exception=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/roomescape/reservation/web/ReservationController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/roomescape/reservation/web/ReservationController.kt b/src/main/kotlin/roomescape/reservation/web/ReservationController.kt index 47b4a720..aa41864f 100644 --- a/src/main/kotlin/roomescape/reservation/web/ReservationController.kt +++ b/src/main/kotlin/roomescape/reservation/web/ReservationController.kt @@ -90,7 +90,7 @@ class ReservationController( ) return ResponseEntity.created(URI.create("/reservations/${reservationRetrieveResponse.id}")) .body(CommonApiResponse(reservationRetrieveResponse)) - } catch (e: RoomescapeException) { + } catch (e: Exception) { val cancelRequest = PaymentCancelRequest(paymentRequest.paymentKey, paymentRequest.amount, e.message!!) val paymentCancelResponse = paymentClient.cancel(cancelRequest)