Skip to content

Commit

Permalink
Refactor : advice, exception 클래스 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonda02 committed Jul 24, 2024
1 parent 9ae99b8 commit 2fe59eb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import umc.kkijuk.server.career.controller.exception.CareerValidationException;
import umc.kkijuk.server.common.domian.exception.CareerValidationException;
import umc.kkijuk.server.career.controller.response.CareerGroupedByResponse;
import umc.kkijuk.server.career.controller.response.CareerResponseMessage;
import umc.kkijuk.server.career.domain.Career;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package umc.kkijuk.server.career.controller.exception;
package umc.kkijuk.server.common.controller;


import com.fasterxml.jackson.databind.exc.InvalidFormatException;
Expand All @@ -10,6 +10,7 @@
import org.springframework.web.bind.annotation.RestControllerAdvice;
import umc.kkijuk.server.career.controller.response.CareerResponse;
import umc.kkijuk.server.career.controller.response.CareerResponseMessage;
import umc.kkijuk.server.common.domian.exception.CareerValidationException;


@RestControllerAdvice(assignableTypes = {umc.kkijuk.server.career.controller.CareerController.class})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package umc.kkijuk.server.career.controller.exception;
package umc.kkijuk.server.common.domian.exception;

public class CareerValidationException extends RuntimeException{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.test.annotation.DirtiesContext;
import umc.kkijuk.server.career.controller.exception.CareerExceptionControllerAdvice;
import umc.kkijuk.server.career.controller.exception.CareerValidationException;
import umc.kkijuk.server.common.controller.CareerExceptionControllerAdvice;
import umc.kkijuk.server.common.domian.exception.CareerValidationException;
import umc.kkijuk.server.career.controller.response.CareerGroupedByResponse;
import umc.kkijuk.server.career.controller.response.CareerResponse;
import umc.kkijuk.server.career.controller.response.CareerResponseMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import umc.kkijuk.server.career.controller.exception.CareerValidationException;
import umc.kkijuk.server.common.domian.exception.CareerValidationException;
import umc.kkijuk.server.career.domain.Career;
import umc.kkijuk.server.career.domain.Category;
import umc.kkijuk.server.career.dto.CareerRequestDto;
Expand Down

0 comments on commit 2fe59eb

Please sign in to comment.