BluetoothDecodeError
public enum BluetoothDecodeError
extension BluetoothDecodeError: LocalizedError
extension BluetoothDecodeError: Encodable
Errors for Decoding
-
Decoding Not Supported
Declaration
Swift
case notSupported
-
Property Size Issue
Declaration
Swift
case properySize(String)
-
Manufacturer Not Correct
Declaration
Swift
case manufacturer(String)
-
No Manufacturer Specific Data
Declaration
Swift
case noManufacturerSpecificData
-
Specification Mismatch
Declaration
Swift
case specIssue(String)
-
String Value Could not be Decoded
Declaration
Swift
case invalidStringValue
-
General Error
Declaration
Swift
case general(String)
-
Undocumented
Declaration
Swift
public var description: String { get }
-
A localized message describing what error occurred.
Declaration
Swift
public var errorDescription: String? { get }
-
Encodes this value into the given encoder.
If the value fails to encode anything,
encoder
will encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to write data to.