- From: Ugan Sivagnanenthirarajah via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 Nov 2020 01:14:31 +0000
- To: public-web-bluetooth-log@w3.org
usivagna has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth: == Question about mapping Scanning promises to Windows Bluetooth States == In the [scanning spec](https://webbluetoothcg.github.io/web-bluetooth/scanning.html) promises are rejected with either a TypeError, NotAllowedError, NotSupportedError, InvalidStateError or UnknownError. How would these errors map/overlap to error states in operating systems like [Windows?](https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.bluetootherror?view=winrt-18362) OS state| |Description| Mapping to State in Scanning Spec -- | -- | -- | -- ConsentRequired | 8 | The operation requires consent. | NotAllowedError? DisabledByPolicy | 5 | The operation is disabled by policy. | NotAllowedError? DisabledByUser | 7 | The operation is disabled by the user. | NotAllowedError? NotSupported | 6 | The operation is not supported on the current Bluetooth radio hardware.| NotSupportedError? OtherError | 4 | An unexpected error has occurred. | UnknownError RadioNotAvailable | 1 | The Bluetooth radio was not available. This error occurs when the Bluetooth radio has been turned off. | InvalidStateError? ResourceInUse | 2 | The operation cannot be serviced because the necessary resources are currently in use.| UnknownError? TransportNotSupported | 9 | The transport is not supported.|NotSupportedError? Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/531 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 17 November 2020 01:14:33 UTC