Skip to content

Commit

Permalink
refactor [#62] 작성된 예외 처리 클래스로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1hyun committed Jan 16, 2025
1 parent fd5af2c commit 917658f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.sopt.confeti.domain.concert.Concert;
import org.sopt.confeti.domain.concert.infra.repository.ConcertRepository;
import org.sopt.confeti.global.exception.ConfetiException;
import org.sopt.confeti.global.exception.NotFoundException;
import org.sopt.confeti.global.message.ErrorMessage;
import org.sopt.confeti.global.util.artistsearcher.ArtistResolver;
import org.springframework.stereotype.Service;
Expand All @@ -19,7 +20,7 @@ public class ConcertService {
public Concert getConcertDetailByConcertId(final long concertId) {
Concert concert = concertRepository.findById(concertId)
.orElseThrow(
() -> new ConfetiException(ErrorMessage.NOT_FOUND)
() -> new NotFoundException(ErrorMessage.NOT_FOUND)
);

artistResolver.load(concert);
Expand Down

0 comments on commit 917658f

Please sign in to comment.