Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error modules cleanup #7377

Open
cknitt opened this issue Apr 3, 2025 · 0 comments
Open

Error modules cleanup #7377

cknitt opened this issue Apr 3, 2025 · 0 comments
Assignees
Milestone

Comments

@cknitt
Copy link
Member

cknitt commented Apr 3, 2025

Currently we have both Exn and Error modules in the standard library, and we suggest to catch JS errors as Exn.Error(error) (with error having type exn).

Instead, we should document catching JsError(error) (built-in type) with error having type unknown and provide related helper functions in the Error module.

Possibly consider a different/better name than JsError. Error is not ideal either, as it conflicts with the Result module.

@cknitt cknitt moved this to Ready in ReScript development Apr 3, 2025
@cknitt cknitt added this to the v12 milestone Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

2 participants