diff --git a/usecase/src/main/java/org/depromeet/spot/usecase/service/member/MemberService.java b/usecase/src/main/java/org/depromeet/spot/usecase/service/member/MemberService.java index 21295a80..04fadbe3 100644 --- a/usecase/src/main/java/org/depromeet/spot/usecase/service/member/MemberService.java +++ b/usecase/src/main/java/org/depromeet/spot/usecase/service/member/MemberService.java @@ -8,8 +8,6 @@ import org.depromeet.spot.usecase.port.out.oauth.OauthRepository; import org.springframework.stereotype.Service; -import com.sun.jdi.request.DuplicateRequestException; - import lombok.RequiredArgsConstructor; @Service @@ -48,7 +46,8 @@ public Member login(String idCode) { @Override public Boolean duplicatedNickname(String nickname) { - if (memberRepository.existsByNickname(nickname)) throw new DuplicateRequestException(); + if (memberRepository.existsByNickname(nickname)) + throw new MemberNicknameConflictException(); return Boolean.FALSE; } }