From 4a0ba70cce8e4164f7a144012c842a44428388cc Mon Sep 17 00:00:00 2001 From: BackFoxx Date: Thu, 12 Oct 2023 10:34:11 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=204=EB=8B=A8=EA=B3=84=20=ED=94=BC?= =?UTF-8?q?=EB=93=9C=EB=B0=B1=20-=20TransactionProxyHandler=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=8D=98=EC=A7=80=EB=8A=94=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=EB=A1=9C=20RuntimeException=20=EB=8C=80=EC=8B=A0=20Exception?= =?UTF-8?q?=20=EB=8D=98=EC=A7=80=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/techcourse/service/TransactionProxyHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/techcourse/service/TransactionProxyHandler.java b/app/src/main/java/com/techcourse/service/TransactionProxyHandler.java index 58a15be435..1efaf9d84b 100644 --- a/app/src/main/java/com/techcourse/service/TransactionProxyHandler.java +++ b/app/src/main/java/com/techcourse/service/TransactionProxyHandler.java @@ -34,10 +34,10 @@ public Object invoke(final Object proxy, final Method method, final Object[] arg } } - private RuntimeException handleTransactionFailure(final Connection connection, final Exception e) { + private Exception handleTransactionFailure(final Connection connection, final Exception e) { try { connection.rollback(); - return new RuntimeException(e); + return e; } catch (SQLException ex) { return new SQLTransactionRollbackException(ex); }