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
coordinatesarray is invalid, and should contain 2 or more items.Declaration
Swift
case invalidCoordinates -
Passed
polygonarray 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)
AlertError Enumeration Reference