Skip to content

Commit

Permalink
refactor: MultiStatusException->ConflictException
Browse files Browse the repository at this point in the history
  • Loading branch information
zzoe2346 committed Oct 23, 2024
1 parent 34781b6 commit 7700318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import com.example.sinitto.auth.service.KakaoApiService;
import com.example.sinitto.auth.service.KakaoTokenService;
import com.example.sinitto.auth.service.TokenService;
import com.example.sinitto.common.exception.MultiStatusException;
import com.example.sinitto.common.exception.ConflictException;
import com.example.sinitto.common.exception.NotFoundException;
import com.example.sinitto.common.resolver.MemberIdProvider;
import com.example.sinitto.member.dto.RegisterResponse;
Expand Down Expand Up @@ -71,7 +71,7 @@ public LoginResponse kakaoLogin(String authorizationCode) {
public RegisterResponse registerNewMember(String name, String phoneNumber, String email, boolean isSinitto) {

if (memberRepository.existsByEmail(email)) {
throw new MultiStatusException("์ด๋ฏธ ์กด์žฌํ•˜๋Š” ์ด๋ฉ”์ผ์ž…๋‹ˆ๋‹ค.");
throw new ConflictException("์ด๋ฏธ ์กด์žฌํ•˜๋Š” ์ด๋ฉ”์ผ์ž…๋‹ˆ๋‹ค.");
}

Member newMember = new Member(name, phoneNumber, email, isSinitto);
Expand Down

0 comments on commit 7700318

Please sign in to comment.