Skip to content

Commit

Permalink
fix : Error 코드 공통으로 쓸수 있도록 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed May 13, 2024
1 parent b681572 commit 003bf73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", "사용자의 항공권이 아닙니다");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 003bf73

Please sign in to comment.