Skip to content

Commit

Permalink
feat : 파일명 변경 후 날씨 에러 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed Jun 5, 2024
1 parent d5c6064 commit 26cbc9b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public enum ErrorCode {
IATA_CODE_NOT_FOUND(HttpStatus.NOT_FOUND, "S005", "해당 국가의 공항 코드를 찾을 수 없습니다."),
CHECK_LIST_NOT_FOUND(HttpStatus.NOT_FOUND, "S006", "체크리스트를 찾을 수 없습니다"),

// Flight & Hotel
// Open API
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", "사용자의 항공권이 아닙니다");
NOT_YOUR_FLIGHT(HttpStatus.UNAUTHORIZED, "F004", "사용자의 항공권이 아닙니다"),
OPEN_WEATHER_SEARCH_FAILED(HttpStatus.NOT_FOUND,"F005", "날씨 정보 파싱에 실패하였습니다");


private HttpStatus status;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.isp.backend.global.exception.flight;
package com.isp.backend.global.exception.openApi;

import com.isp.backend.global.exception.CustomException;
import com.isp.backend.global.exception.ErrorCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.isp.backend.global.exception.flight;
package com.isp.backend.global.exception.openApi;

import com.isp.backend.global.exception.CustomException;
import com.isp.backend.global.exception.ErrorCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.isp.backend.global.exception.flight;
package com.isp.backend.global.exception.openApi;

import com.isp.backend.global.exception.CustomException;
import com.isp.backend.global.exception.ErrorCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.isp.backend.global.exception.openApi;

import com.isp.backend.global.exception.CustomException;
import com.isp.backend.global.exception.ErrorCode;

public class OpenWeatherSearchFailedException extends CustomException {

public OpenWeatherSearchFailedException() {
super(ErrorCode.OPEN_WEATHER_SEARCH_FAILED);
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.isp.backend.global.exception.flight;
package com.isp.backend.global.exception.openApi;

import com.isp.backend.global.exception.CustomException;
import com.isp.backend.global.exception.ErrorCode;
Expand Down

0 comments on commit 26cbc9b

Please sign in to comment.