Skip to content

Commit

Permalink
refactor: 예외를 아키텍쳐 단위의 패키지로 이동 #28
Browse files Browse the repository at this point in the history
  • Loading branch information
leegwichan committed Jul 20, 2024
1 parent de80d87 commit 31e3543
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package ddangkong.controller.exception;

import ddangkong.service.excpetion.BusinessLogicException;
import ddangkong.service.excpetion.ViolateDataException;
import jakarta.validation.ConstraintViolationException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ddangkong.controller.exception;
package ddangkong.service.excpetion;

public class BusinessLogicException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ddangkong.controller.exception;
package ddangkong.service.excpetion;

public class ViolateDataException extends RuntimeException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package ddangkong.service.question;

import ddangkong.controller.exception.BusinessLogicException;
import ddangkong.controller.exception.ViolateDataException;
import ddangkong.controller.question.dto.BalanceQuestionResponse;
import ddangkong.domain.option.BalanceOption;
import ddangkong.domain.option.BalanceOptionRepository;
import ddangkong.domain.question.BalanceQuestion;
import ddangkong.domain.question.RoomQuestionRepository;
import ddangkong.service.excpetion.BusinessLogicException;
import ddangkong.service.excpetion.ViolateDataException;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

import ddangkong.controller.exception.BusinessLogicException;
import ddangkong.controller.option.dto.BalanceOptionResponse;
import ddangkong.controller.question.dto.BalanceQuestionResponse;
import ddangkong.domain.question.Category;
import ddangkong.service.BaseServiceTest;
import ddangkong.service.excpetion.BusinessLogicException;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit 31e3543

Please sign in to comment.