diff --git a/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/ErrorResponseDto.java b/src/main/java/com/zenjob/challenge/rest_api/dto/ErrorResponseDto.java similarity index 74% rename from src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/ErrorResponseDto.java rename to src/main/java/com/zenjob/challenge/rest_api/dto/ErrorResponseDto.java index 5f33c4a..2b81e4e 100644 --- a/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/ErrorResponseDto.java +++ b/src/main/java/com/zenjob/challenge/rest_api/dto/ErrorResponseDto.java @@ -1,4 +1,4 @@ -package com.zenjob.challenge.rest_api.exceptionhandler; +package com.zenjob.challenge.rest_api.dto; import lombok.*; diff --git a/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/GlobalExceptionHandler.java b/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/GlobalExceptionHandler.java index 519603c..6e336d8 100644 --- a/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/GlobalExceptionHandler.java +++ b/src/main/java/com/zenjob/challenge/rest_api/exceptionhandler/GlobalExceptionHandler.java @@ -3,6 +3,7 @@ import com.zenjob.challenge.domain.exceptions.InvalidActionException; import com.zenjob.challenge.domain.exceptions.InvalidEndDateException; import com.zenjob.challenge.domain.exceptions.InvalidStartDateException; +import com.zenjob.challenge.rest_api.dto.ErrorResponseDto; import javassist.NotFoundException; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity;