Re: [w3c/permissions] Exceptions in promise using algorithms (#102)

Users don't call the [permission request algorithm](https://w3c.github.io/permissions/#permission-request-algorithm) directly; it's only used by [`request()`](https://w3c.github.io/permissions/#dom-permissions-request), which correctly translates the exception into a project rejection. So, I think it's correct, but maybe should be made more clear somehow?

We generally reject promises with things like [`SecurityError`](https://heycam.github.io/webidl/#securityerror), which are `DOMException`s instead of `Error`s.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/102#issuecomment-232263046

Received on Wednesday, 13 July 2016 05:53:40 UTC