AlertError

public enum AlertError : SPError

Errors returned when making a query for alerts via SkyPath.alerts(with:). Query is made among locally stored data, so an error will typically indicate that some properties of AlertQuery or configuration of DataQuery are invalid or insufficient.

  • Passed coordinates array is invalid, and should contain 2 or more items.

    Declaration

    Swift

    case invalidCoordinates
  • Passed polygon array is invalid, and should contain 3 or more items.

    Declaration

    Swift

    case invalidPolygon
  • Altitude range should be rounded to thousand feet. For example, 38000-40000 feet is correct, and 38000-40100 or 38100-40000 is wrong.

    Declaration

    Swift

    case altRangeNotRoundToThousandFeet
  • Other general error.

    Declaration

    Swift

    case general(error: GeneralError)