ZendriveVehicleTaggingError
@objc(ZDZendriveVehicleTaggingError)
public enum ZendriveVehicleTaggingError : Int
extension ZendriveVehicleTaggingError: LocalizedError
Error returned as code to NSError from ZendriveVehicleTagging
public APIs
in case of failures.
-
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 = 0
-
VehicleInfo
object passed toZendriveVehicleTagging.associateVehicle(_:)
is invalid because of one of the following reasons:-- It is nil.
VehicleInfo.vehicleId
is nil or has more than 64 characters.VehicleInfo.vehicleId
doesn’t satisfyZendrive.isValidInputParameter(_:)
.VehicleInfo.bluetoothId
is not a valid mac address.
Declaration
Swift
case invalidVehicleInfo = 1
-
ZendriveVehicleTagging.associateVehicle(_:)
called for vehicle whose vehicleId or bluetoothId or both conflicts with an already associated vehicle.Declaration
Swift
case associatedVehicleConflict = 2
-
ZendriveVehicleTagging.associateVehicle(_:)
called for more than two vehicles.Declaration
Swift
case associatedVehiclesLimitExceeded = 3
-
vehicleId passed to
ZendriveVehicleTagging.dissociateVehicle(_:)
is invalid because of one of the following reasons:-- It is nil.
- It has more than 64 characters.
- It doesn’t satisfy
+[Zendrive isValidInputParameter:]
.
Declaration
Swift
case invalidVehicleId = 4
-
ZendriveVehicleTagging.dissociateVehicle(_:)
called for an unassociated vehicle.Declaration
Swift
case vehicleNotAssociated = 5
-
Declaration
Swift
public var errorDescription: String? { get }