diff --git a/backend/src/main/java/com/isp/backend/global/exception/ErrorCode.java b/backend/src/main/java/com/isp/backend/global/exception/ErrorCode.java index 75f08b73..ec92d2e9 100644 --- a/backend/src/main/java/com/isp/backend/global/exception/ErrorCode.java +++ b/backend/src/main/java/com/isp/backend/global/exception/ErrorCode.java @@ -26,8 +26,8 @@ public enum ErrorCode { IMAGE_NOT_FOUND(HttpStatus.NOT_FOUND, "S004", "이미지를 찾을 수 없습니다."), IATA_CODE_NOT_FOUND(HttpStatus.NOT_FOUND, "S005", "해당 국가의 공항 코드를 찾을 수 없습니다."), - // Flight - FLIGHT_SEARCH_FAILED(HttpStatus.INTERNAL_SERVER_ERROR,"F001", "힝공편 조회를 가져오는 중 오류를 발생했습니다."), + // Flight & Hotel + AMADEUS_SEARCH_FAILED(HttpStatus.INTERNAL_SERVER_ERROR,"F001", "아마데우스 요청을 가져오는 중 오류를 발생했습니다."), SKY_SCANNER_GENERATE_FAILED(HttpStatus.INTERNAL_SERVER_ERROR,"F002", "스카이스캐너 URL을 생성할 수 없습니다."), FLIGHT_NOT_FOUND(HttpStatus.NOT_FOUND, "F003", "해당 id의 항공권을 찾을 수 없습니다."), NOT_YOUR_FLIGHT(HttpStatus.UNAUTHORIZED, "F004", "사용자의 항공권이 아닙니다"); diff --git a/backend/src/main/java/com/isp/backend/global/exception/flight/FlightSearchFailedException.java b/backend/src/main/java/com/isp/backend/global/exception/flight/AmadeusSearchFailedException.java similarity index 51% rename from backend/src/main/java/com/isp/backend/global/exception/flight/FlightSearchFailedException.java rename to backend/src/main/java/com/isp/backend/global/exception/flight/AmadeusSearchFailedException.java index 2d53046f..2873dadc 100644 --- a/backend/src/main/java/com/isp/backend/global/exception/flight/FlightSearchFailedException.java +++ b/backend/src/main/java/com/isp/backend/global/exception/flight/AmadeusSearchFailedException.java @@ -3,10 +3,10 @@ import com.isp.backend.global.exception.CustomException; import com.isp.backend.global.exception.ErrorCode; -public class FlightSearchFailedException extends CustomException { +public class AmadeusSearchFailedException extends CustomException { - public FlightSearchFailedException() { - super(ErrorCode.FLIGHT_SEARCH_FAILED); + public AmadeusSearchFailedException() { + super(ErrorCode.AMADEUS_SEARCH_FAILED); } } \ No newline at end of file