BluIDSDKError
public enum BluIDSDKError : Error
It denotes the possible errors that can occur.
-
Returns Generic Error
Declaration
Swift
case error(error: Error)
-
The input entered by the user is not valid
Declaration
Swift
case invalidInput
-
The device has no internet connection.
Declaration
Swift
case noInternet
-
No response came from server.
Declaration
Swift
case timeout
-
The server is out of reach.
Declaration
Swift
case serverUnreachable
-
Exception from the server.
Declaration
Swift
case serverError(errorCode: Int)
-
The server while working as a gateway to get a response needed to handle the request, got an invalid response.
Declaration
Swift
case serverErrorResponse
-
The server cannot or will not process the request due to something that is perceived to be a client error.
Declaration
Swift
case serverBadRequest(errorCode: Int)
-
The request made needs access to a restricted resource.
Declaration
Swift
case serverUnauthorized
-
The session has expired.
Declaration
Swift
case loginExpired
-
The upgradation of firmware failed.
Declaration
Swift
case firmwareUpdateFailed(errorMessage: String)
-
The device is out of reach.
Declaration
Swift
case deviceUnreachable
-
Connection with the device is lost.
Declaration
Swift
case deviceConnectionLost
-
Failed to connect to the device.
Declaration
Swift
case deviceConnectFailure
-
The device failed to perform the operation.
Declaration
Swift
case deviceFailure
-
Attempted to communicate but did not get a response.
Declaration
Swift
case deviceCommunicationError
-
The response given by the device is invalid.
Declaration
Swift
case deviceInvalidResponse
-
The device is currently in BluBOOT mode.
Declaration
Swift
case deviceInBluboot
-
The access permission for the operation is not granted.
Declaration
Swift
case accessDenied
-
The download operation for the dependent data failed.
Declaration
Swift
case downloadFailed(message: String)
-
The delete operation for the dependent data failed.
Declaration
Swift
case deleteFailed
-
The dependent data not found.
Declaration
Swift
case notFound
-
Unable to parse JSON.
Declaration
Swift
case jsonParseFailure
-
The bluetooth is powered off.
Declaration
Swift
case bluetoothPowerOff
-
Permission not granted to access bluetooth.
Declaration
Swift
case bluetoothUnAuthorized
-
The device didn’t respond within the time limit.
Declaration
Swift
case deviceAPITimeout
-
Declaration
Swift
case sdkError(errorMessage: String)