CSErrorCode

enum CSErrorCode {}

The below error codes define different reasons why a method call to the SDK failed.

  • The application have not authorized location services.

    Declaration

    Objective-C

    CSErrorCodeLocationNotAuthorized = 1

    Swift

    case locationNotAuthorized = 1
  • The application have the background app refresh disabled at the time of the SDK method call.

    Declaration

    Objective-C

    CSErrorCodeBackgroundAppRefreshDenied

    Swift

    case backgroundAppRefreshDenied = 2
  • The trackingIdentifier was not set prior to making a call in the SDK which requires it set or the trackingIdentifier length > 36

    Declaration

    Objective-C

    CSErrorCodeTrackingIdentifierInvalid

    Swift

    case trackingIdentifierInvalid = 3
  • An invalid site instance was given to start tracking for the CSTracker

    Declaration

    Objective-C

    CSErrorCodeInvalidSiteInstance

    Swift

    case invalidSiteInstance = 4
  • Start track called with site with no trackTokens in it.

    Declaration

    Objective-C

    CSErrorCodeNoTrackTokensForSite

    Swift

    case noTrackTokensForSite = 5
  • The API key and secret is not set in the CSMonitoringSession. The CSMonitoringSession was not initialized using its class method which takes the API key and secret.

    Declaration

    Objective-C

    CSErrorCodeAPIKeySecretNotSet

    Swift

    case apiKeySecretNotSet = 6
  • The usageToken is not set on the CSUserSession. The CSUserSession was not initialized using its class method which takes in the usageToken

    Declaration

    Objective-C

    CSErrorCodeUsageTokenNotSet

    Swift

    case usageTokenNotSet = 7
  • Network error talking to Curbside servers

    Declaration

    Objective-C

    CSErrorCodeNetworkError

    Swift

    case networkError = 8
  • The session has not been authenticated and/or a trackingIdentifier set.

    Declaration

    Objective-C

    CSErrorCodeNotAuthenticated

    Swift

    case notAuthenticated = 9
  • The application/bundle identifier from which the request was sent is not recognized by the ARRIVE platform for the account. Please use the dashboard to add the bundle identifier of the app in the account.

    Declaration

    Objective-C

    CSErrorCodeUnknownAppID

    Swift

    case unknownAppID = 10
  • The site for which the action was requested is either not available under the current app family or that site does not exist in the Curbside Platform. Please use the ARRIVE dashboard to add the site.

    Declaration

    Objective-C

    CSErrorCodeInvalidSite

    Swift

    case invalidSite = 11
  • The application has exceeded the number of requests and the request is throttled.

    Declaration

    Objective-C

    CSErrorCodeRequestThrottled

    Swift

    case requestThrottled = 12
  • The application is not authorized to use the Curbside Platform. The API key/secret or usageToken is invalid or the app-id is not reconginized by the Curbside Platform. Please make sure that the API key/secret or usageToken is valid and the app-id has been added to the account in ARRIVE Dashboard.

    Declaration

    Objective-C

    CSErrorCodeUnauthorized

    Swift

    case unauthorized = 13
  • The number of trips has exceeded the maximum permitted for the Curbside Platform account.

    Declaration

    Objective-C

    CSErrorCodeTripLimitExceeded

    Swift

    case tripLimitExceeded = 14
  • The number of sites being tracked for the given user has exceeded the maximum number of sites.

    Declaration

    Objective-C

    CSErrorCodeTooManySites

    Swift

    case tooManySites = 15
  • The trackToken has previously been used in a completed or cancelled trip.

    Declaration

    Objective-C

    CSErrorCodeTrackTokenAlreadyUsed

    Swift

    case trackTokenAlreadyUsed = 16
  • The trackToken has previously been used in a completed or cancelled trip.

    Declaration

    Objective-C

    CSErrorCodeUnknown

    Swift

    case unknown = 17