BluejayError

public enum BluejayError

Errors specific to Bluejay.

  • Bluetooth is either turned off or unavailable.

    Declaration

    Swift

    case bluetoothUnavailable
  • Bluejay does not support another scanning request if Bluejay is still scanning.

    Declaration

    Swift

    case multipleScanNotSupported
  • Bluejay does not support another connection request if Bluejay is already connected or still connecting.

    Declaration

    Swift

    case multipleConnectNotSupported
  • Bluejay does not support another disconnection request if Bluejay is still disconnecting.

    Declaration

    Swift

    case multipleDisconnectNotSupported
  • A connection request in Bluejay has timed out.

    Declaration

    Swift

    case connectionTimedOut
  • A Bluetooth operation such as, reading or writing, is attempted when Bluejay is not connected to a peripheral.

    Declaration

    Swift

    case notConnected
  • A Bluetooth operation is cancelled.

    Declaration

    Swift

    case cancelled
  • An attempt to listen on a characteristic has timed out.

    Declaration

    Swift

    case listenTimedOut
  • An attempt to read a characteristic has failed.

    Declaration

    Swift

    case readFailed
  • An attempt to write a characteristic has failed.

    Declaration

    Swift

    case writeFailed
  • An attempt to read a value from a characteristic has returned no data unexpectedly.

    Declaration

    Swift

    case missingData
  • An attempt to read a range of data has failed due to incorrect bounds or an unexpected length.

    Declaration

    Swift

    case dataOutOfBounds(start: Int, length: Int, count: Int)
  • iOS will not continue scanning in the background if no service identifiers are specified.

    Declaration

    Swift

    case missingServiceIdentifiersInBackground
  • Bluejay does not support further Bluetooth operations while a Bluejay background task is still running.

    Declaration

    Swift

    case backgroundTaskRunning
  • Bluejay does not support another Bluejay background task when there is already one that is still running.

    Declaration

    Swift

    case multipleBackgroundTaskNotSupported
  • Bluejay has failed to encode a listen cache.

    Declaration

    Swift

    case listenCacheEncoding(Error)
  • Bluejay has failed to decode a listen cache.

    Declaration

    Swift

    case listenCacheDecoding(Error)
  • Declaration

    Swift

    public static var errorDomain: String
  • Declaration

    Swift

    public var errorCode: Int
  • Declaration

    Swift

    public var errorUserInfo: [String : Any]