From b29f6c8ad3f893d64775ed66a6ed214e95813732 Mon Sep 17 00:00:00 2001 From: 101 Date: Wed, 31 Jan 2024 14:46:47 +0900 Subject: [PATCH] =?UTF-8?q?exception=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/daemawiki/domain/auth/service/Login.java | 4 ++-- .../com/example/daemawiki/domain/auth/service/Signup.java | 4 ++-- .../com/example/daemawiki/domain/mail/service/MailSend.java | 2 +- .../java/com/example/daemawiki/global/security/Tokenizer.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/auth/service/Login.java b/src/main/java/com/example/daemawiki/domain/auth/service/Login.java index 795648f5..641bc0b9 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/service/Login.java +++ b/src/main/java/com/example/daemawiki/domain/auth/service/Login.java @@ -3,8 +3,8 @@ import com.example.daemawiki.domain.auth.dto.LoginRequest; import com.example.daemawiki.domain.auth.dto.TokenResponse; import com.example.daemawiki.domain.user.repository.UserRepository; -import com.example.daemawiki.global.exception.PasswordMismatchException; -import com.example.daemawiki.global.exception.UserNotFoundException; +import com.example.daemawiki.global.exception.H401.PasswordMismatchException; +import com.example.daemawiki.global.exception.H404.UserNotFoundException; import com.example.daemawiki.global.security.Tokenizer; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; diff --git a/src/main/java/com/example/daemawiki/domain/auth/service/Signup.java b/src/main/java/com/example/daemawiki/domain/auth/service/Signup.java index 5d37db0e..aeab1b23 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/service/Signup.java +++ b/src/main/java/com/example/daemawiki/domain/auth/service/Signup.java @@ -4,8 +4,8 @@ import com.example.daemawiki.domain.mail.repository.AuthMailRepository; import com.example.daemawiki.domain.user.model.User; import com.example.daemawiki.domain.user.repository.UserRepository; -import com.example.daemawiki.global.exception.EmailAlreadyExistsException; -import com.example.daemawiki.global.exception.UnVerifiedEmailException; +import com.example.daemawiki.global.exception.H409.EmailAlreadyExistsException; +import com.example.daemawiki.global.exception.H403.UnVerifiedEmailException; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.stereotype.Service; import reactor.core.publisher.Mono; diff --git a/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java b/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java index 8feeba66..9cffe4f1 100644 --- a/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java +++ b/src/main/java/com/example/daemawiki/domain/mail/service/MailSend.java @@ -3,7 +3,7 @@ import com.example.daemawiki.domain.mail.dto.AuthCodeRequest; import com.example.daemawiki.domain.mail.model.AuthCode; import com.example.daemawiki.domain.mail.repository.AuthCodeRepository; -import com.example.daemawiki.global.exception.MailSendFailedException; +import com.example.daemawiki.global.exception.H500.MailSendFailedException; import jakarta.mail.MessagingException; import jakarta.mail.internet.InternetAddress; import jakarta.mail.internet.MimeMessage; diff --git a/src/main/java/com/example/daemawiki/global/security/Tokenizer.java b/src/main/java/com/example/daemawiki/global/security/Tokenizer.java index aba86b6e..98cb2df7 100644 --- a/src/main/java/com/example/daemawiki/global/security/Tokenizer.java +++ b/src/main/java/com/example/daemawiki/global/security/Tokenizer.java @@ -2,7 +2,7 @@ import com.example.daemawiki.domain.auth.dto.ReissueRequest; import com.example.daemawiki.domain.auth.dto.TokenResponse; -import com.example.daemawiki.global.exception.InvalidTokenException; +import com.example.daemawiki.global.exception.H400.InvalidTokenException; import io.jsonwebtoken.*; import org.springframework.beans.factory.annotation.Value; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;