Skip to content

How to model Errors #4

Open
Open

Description

@nojaf

Hi again,

How do we want to model https://developer.mozilla.org/en-US/docs/Web/API/DOMException?
Just as an interface or do we want to tied this to Error.t somehow?

Activity

  1. jderochervlk commented on Nov 3, 2024

    @jderochervlk
    Collaborator

    In TypeScript there isn't overlap between an Error and a DomException so they should probably be different types in ReScript as well.

  2. nojaf commented on Nov 3, 2024

    @nojaf
    ContributorAuthor
  3. jderochervlk commented on Nov 8, 2026

    @jderochervlk
    Collaborator

    Rechecked against main 844c32af. DOMException.t and its constructor now exist, but that does not settle this issue's question about interoperability with JavaScript/ReScript error types. Keeping this open until that contract is agreed and documented. The alpha binding fixes do not resolve the design question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions