Download mobile/modules/bluetooth-sdk/ios/Source/errors/BluetoothSdkError.swift from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/ios/Source/errors/BluetoothSdkError.swift
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/bluetooth-sdk/ios/Source/errors/BluetoothSdkError.swift
-
curl -L -o BluetoothSdkError.swift https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/ios/Source/errors/BluetoothSdkError.swift
680 Bytes
| import Foundation | |
| public struct BluetoothSdkError: Error, LocalizedError, CustomStringConvertible { | |
| public let code: String | |
| public let message: String | |
| /// Machine-readable reason a `pair_failure` carries (`pair_failure.code`), such as | |
| /// `ios_forget_pairing`. Nil for other errors. | |
| public let failureCode: String? | |
| public init(code: String, message: String, failureCode: String? = nil) { | |
| self.code = code | |
| self.message = message | |
| self.failureCode = failureCode | |
| } | |
| public var errorDescription: String? { | |
| message | |
| } | |
| public var description: String { | |
| "\(code): \(message)" | |
| } | |
| } | |