StartError

public enum StartError : SPError

Errors returned in a completion block when starting the SDK by SkyPath.start().

  • The provided API key is invalid.

    Declaration

    Swift

    case apiKeyInvalid
  • The environment is invalid. Check the env parameter.

    Declaration

    Swift

    case envInvalid
  • The user id or an airline is empty or invalid. The user id should be unique per airline id. The airline should be an ICAO code or other company id. Both ICAO or other IDs should be registered in the SkyPath in order to be able to use it with the SDK.

    Declaration

    Swift

    case userIdOrAirlineInvalid
  • The provided API key or an airline is not authorized to use. Check message for more details.

    Declaration

    Swift

    case unauthorized(message: String)
  • User is locked for a specific time due to many failed authentication attempts. Check message for more details.

    Declaration

    Swift

    case userLocked(message: String)
  • Other general error.

    Declaration

    Swift

    case general(error: GeneralError)