GithubHelp home page GithubHelp logo

Comments (3)

anssiko avatar anssiko commented on August 23, 2024

I believe we should reuse the DOMException types, if the API just needs a way to represents an error, with no additional data (such as in the MediaStreamError's case, constraintName) beyond the optional message that can be used to convey user agent-defined human readable details of the error for debugging purposes.

For example, we could simply throw NotSupportedError in both the cases.

I'll tag this for F2F discussion, since this should be a relatively quick one.

from presentation-api.

mfoltzgoogle avatar mfoltzgoogle commented on August 23, 2024

I would also be in favor of re-using DOMException in the spec and using the human-readable message to provide the exact issue to the developer.

Unless there are arguments otherwise, we'll close this issue when the spec has been updated to throw DOMException types for error cases.

from presentation-api.

anssiko avatar anssiko commented on August 23, 2024

@mfoltzgoogle Sounds good. I'd consider this a minor change that aligns the spec with the platform conventions.

Please feel free to submit a PR with "Fixes #78" in the commit message and merge it. That should automatically close the issue (thanks to https://help.github.com/articles/closing-issues-via-commit-messages/).

If any of the group participants have concerns with the change, we can always reopen the issue.

from presentation-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.