- From: Mark Foltz via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 Apr 2015 19:01:47 +0000
- To: public-secondscreen@w3.org
mfoltzgoogle has just created a new issue for https://github.com/w3c/presentation-api: == Define PresentationError object for Presentation API specific rejection reasons == The [algorithms for startSession and joinSession](http://w3c.github.io/presentation-api/#starting-a-presentation-session) indicate that specific error types like `PermissionDenied` and `NoPresentationFound` should be used when rejecting the Promises returned to the caller. However @avayvod has pointed out these types are not part of the [`DOMException` list for WebIDL](http://heycam.github.io/webidl/#dfn-DOMException). If we wish to use these types we should define our own `PresentationError` object with Presentation-API specific error types. Alternatively, we could try to re-use existing `DOMException` types, which seems to be done in other specs (Push API, Service Workers API). Also see: * [MediaStreamError](http://www.w3.org/TR/mediacapture-streams/#mediastreamerror) See https://github.com/w3c/presentation-api/issues/78
Received on Thursday, 16 April 2015 19:01:57 UTC