ZendriveError
@objc(ZDZendriveError)
public enum ZendriveError : Int32
Error returned as code to NSError from Zendrive
public APIs in case of
failures.
-
SDK Key used in setup is invalid
Declaration
Swift
case invalidSDKKeyString
-
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
Swift
case networkUnreachable
-
Zendrive SDK does not support the OS version of the device.
Declaration
Swift
case unsupportedOSVersion
-
Zendrive SDK does not support the device type.
Declaration
Swift
case deviceUnsupported
-
Invalid parameter was passed to the API.
Declaration
Swift
case invalidParams
-
Internal error.
Declaration
Swift
case internalFailure
-
Zendrive SDK is not setup. This error is also returned in case SDK setup has started but completion handler for setup is not called yet.
Declaration
Swift
case notSetup
-
Insurance Period hasn’t changed from the previously active period, action ignored. This error may be returned from
ZendriveInsurance.startDrive(withPeriod1:)
,ZendriveInsurance.startDrive(withPeriod2:completionHandler:)
,ZendriveInsurance.startDrive(withPeriod3:completionHandler:)
.Declaration
Swift
case insurancePeriodSame
-
Invalid
trackingId
passed for new drive. This error may be returned fromZendriveInsurance.startDrive(withPeriod2:completionHandler:)
,ZendriveInsurance.startDrive(withPeriod3:completionHandler:)
.Declaration
Swift
case invalidTrackingId
-
Zendrive SDK 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
Swift
case notTornDown
-
Some IO error occured while doing the operation. Refer to error description for more info.
Declaration
Swift
case ioError