Closed Bug 1049452 Opened 10 years ago Closed 6 years ago

Handle promise rejection with correct 'Exception' object for bluetooth API

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jaliu, Unassigned)

References

Details

(Whiteboard: [p=1][webbt-api])

Attachments

(1 file)

Return a DOMException with error message when Bluetooth component rejects the promise.

Make good use of Bluedroid status to reject promise properly.
Please refer to hardware/libhardware/include/hardware/bluetooth.h.
- BT_STATUS_SUCCESS,
- BT_STATUS_FAIL,
- BT_STATUS_NOT_READY,
- BT_STATUS_NOMEM,
- BT_STATUS_BUSY,
- BT_STATUS_DONE,
- BT_STATUS_UNSUPPORTED,
- BT_STATUS_PARM_INVALID,
- BT_STATUS_UNHANDLED,
- BT_STATUS_AUTH_FAILURE,
- BT_STATUS_RMT_DEV_DOWN,
- BT_STATUS_AUTH_REJECTED
Assignee: nobody → jaliu
Status: NEW → ASSIGNED
Depends on: 1032755
Whiteboard: [p=1]
Whiteboard: [p=1] → [p=1][webbt-api]
I'm not available for this bug. 
Assign to Ben since his is the reviewer of Bug 1036233.
Thank Ben for his help.
Assignee: 6jamin → btian
Summary: Handle promise rejection properly with correct 'Exception' object for Bluetooth API v2. → Handle promise rejection with correct 'Exception' object for bluetooth API
De-assign myself since I'm not actively working on this bug.
Assignee: btian → nobody
Status: ASSIGNED → NEW
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: