ZendriveError

enum ZendriveError {}

ZendriveError

Discussion: Error returned as code to NSError from Zendrive public APIs in case of failures.

  • SDK Key used in setup is invalid

    Declaration

    Objective-C

    kZendriveErrorInvalidSDKKeyString = 0
  • Network not reachable, Zendrive.setup sometimes needs network call for authentication and to update SDK configuration to work. This error is returned whenever network is not available in these scenarios.

    Declaration

    Objective-C

    kZendriveErrorNetworkUnreachable = 1
  • Zendrive SDK does not support the OS version of the device.

    Declaration

    Objective-C

    kZendriveErrorUnsupportedOSVersion = 2
  • Zendrive SDK does not support the device type.

    Declaration

    Objective-C

    kZendriveErrorDeviceUnsupported = 3
  • Invalid parameter was passed to the API.

    Declaration

    Objective-C

    kZendriveErrorInvalidParams = 101
  • Internal error.

    Declaration

    Objective-C

    kZendriveErrorInternalFailure = 102
  • ZendriveSDK is not setup. This error is also returned in case SDK setup has started but completion handler for setup is not called yet.

    Declaration

    Objective-C

    kZendriveErrorNotSetup = 103
  • Insurance Period hasn’t changed from the previously active period, action ignored. This error may be returned from startPeriod1, startDriveWithPeriod2, startDriveWithPeriod3 APIs of ZendriveInsurance.

    Declaration

    Objective-C

    kZendriveErrorInsurancePeriodSame = 104
  • Invalid trackingId passed for new drive. This error may be returned from startDriveWithPeriod2, startDriveWithPeriod3 APIs of ZendriveInsurance.

    Declaration

    Objective-C

    kZendriveErrorInvalidTrackingId = 105
  • ZendriveSDK is not torn down. This error is returned if the requested operation cannot be completed while the SDK is running like the wipeout API.

    Declaration

    Objective-C

    kZendriveErrorNotTornDown = 106
  • Some IO error occured while doing the operation. Refer to error description for more info.

    Declaration

    Objective-C

    kZendriveErrorIOError = 107