Errors
public enum Errors : Error
The error enum declaration.
-
This is returned if the manager can’t power on.
Declaration
Swift
case bluetoothNotAvailable -
This is returned if we cannot connect to the device. The associated value is any error that occurred.
Declaration
Swift
case connectionAttemptFailed(error: Error?) -
This is returned if we connected, but no device was available. This should never happen.
Declaration
Swift
case connectionAttemptFailedNoDevice -
This is returned if we cannot disconnect from the device. The associated value is any error that occurred.
Declaration
Swift
case disconnectionAttemptFailed(error: Error?) -
This is a “catchall” error for a disconnection issue
Declaration
Swift
case unknownDisconnectionError -
This is a “catchall” error for peripheral discovery The associated value is any error that occurred.
Declaration
Swift
case unknownPeripheralDiscoveryError(error: Error?) -
This means that we did not get a characteristic value
Declaration
Swift
case characteristicValueMissing -
This means that there was a timeout. The associated value is any relevant data for that command (typeless).
Declaration
Swift
case commandTimeout(commandData: Any?) -
This is a “catchall” error for characteristics discovery The associated value is any error that occurred.
Declaration
Swift
case unknownCharacteristicsDiscoveryError(error: Error?) -
This is a “catchall” error for characteristics value read The associated value is any error that occurred.
Declaration
Swift
case unknownCharacteristicsReadValueError(error: Error?) -
This is a “catchall” error. The associated value is any error that occurred.
Declaration
Swift
case unknownError(error: Error?) -
The localized description is a simple slug that can be used to key a client-supplied message. It is a very simple class.enum.case String. NOTE: This May not be in the main thread!
Declaration
Swift
public var localizedDescription: String { get }
View on GitHub
Errors Enumeration Reference