From 37154ecb948abf7460e620d070c58f362127040d Mon Sep 17 00:00:00 2001 From: splitCoding Date: Mon, 9 Oct 2023 03:15:17 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Exception=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=A7=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/com/techcourse/dao/SqlRuntimeExceptionTest.java | 2 +- .../org/springframework/jdbc/core/error/SqlExceptionType.java | 1 + .../{ => exception}/TableNotFoundSqlRuntimeException.java | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) rename jdbc/src/main/java/org/springframework/jdbc/core/error/{ => exception}/TableNotFoundSqlRuntimeException.java (64%) diff --git a/app/src/test/java/com/techcourse/dao/SqlRuntimeExceptionTest.java b/app/src/test/java/com/techcourse/dao/SqlRuntimeExceptionTest.java index 46da8a9691..87b2121ab7 100644 --- a/app/src/test/java/com/techcourse/dao/SqlRuntimeExceptionTest.java +++ b/app/src/test/java/com/techcourse/dao/SqlRuntimeExceptionTest.java @@ -12,11 +12,11 @@ import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplateBase; -import org.springframework.jdbc.core.error.TableNotFoundSqlRuntimeException; import org.springframework.jdbc.core.error.exception.ColumnSqlRuntimeException; import org.springframework.jdbc.core.error.exception.DataConversionSqlRuntimeException; import org.springframework.jdbc.core.error.exception.MethodNotAllowedSqlRuntimeException; import org.springframework.jdbc.core.error.exception.SyntaxSqlRuntimeException; +import org.springframework.jdbc.core.error.exception.TableNotFoundSqlRuntimeException; import org.springframework.jdbc.core.mapper.ResultSetObjectMapper; class SqlRuntimeExceptionTest { diff --git a/jdbc/src/main/java/org/springframework/jdbc/core/error/SqlExceptionType.java b/jdbc/src/main/java/org/springframework/jdbc/core/error/SqlExceptionType.java index 05cd411c28..96bfcb7d5b 100644 --- a/jdbc/src/main/java/org/springframework/jdbc/core/error/SqlExceptionType.java +++ b/jdbc/src/main/java/org/springframework/jdbc/core/error/SqlExceptionType.java @@ -8,6 +8,7 @@ import org.springframework.jdbc.core.error.exception.MethodNotAllowedSqlRuntimeException.ExecuteUpdateSqlRuntimeException; import org.springframework.jdbc.core.error.exception.SqlRuntimeException; import org.springframework.jdbc.core.error.exception.SyntaxSqlRuntimeException; +import org.springframework.jdbc.core.error.exception.TableNotFoundSqlRuntimeException; public enum SqlExceptionType { METHOD_NOT_ALLOWED_EXECUTE_UPDATE(90001, ExecuteUpdateSqlRuntimeException::new), diff --git a/jdbc/src/main/java/org/springframework/jdbc/core/error/TableNotFoundSqlRuntimeException.java b/jdbc/src/main/java/org/springframework/jdbc/core/error/exception/TableNotFoundSqlRuntimeException.java similarity index 64% rename from jdbc/src/main/java/org/springframework/jdbc/core/error/TableNotFoundSqlRuntimeException.java rename to jdbc/src/main/java/org/springframework/jdbc/core/error/exception/TableNotFoundSqlRuntimeException.java index f0481f9a36..6cde3d0535 100644 --- a/jdbc/src/main/java/org/springframework/jdbc/core/error/TableNotFoundSqlRuntimeException.java +++ b/jdbc/src/main/java/org/springframework/jdbc/core/error/exception/TableNotFoundSqlRuntimeException.java @@ -1,7 +1,6 @@ -package org.springframework.jdbc.core.error; +package org.springframework.jdbc.core.error.exception; import java.sql.SQLException; -import org.springframework.jdbc.core.error.exception.SqlRuntimeException; public class TableNotFoundSqlRuntimeException extends SqlRuntimeException {