BluetoothEncodeError
public enum BluetoothEncodeError
extension BluetoothEncodeError: LocalizedError
extension BluetoothEncodeError: Encodable
Errors for Encoding
-
Encoding Not Supported
Declaration
Swift
case notSupported
-
Property Size Issue
Declaration
Swift
case properySize(String)
-
Property Bounds Issue
Declaration
Swift
case properyBounds(String)
-
Missing Property
Declaration
Swift
case missingProperties(String)
-
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.