Skip to content

Conversation

@jmagaram
Copy link
Contributor

@jmagaram jmagaram commented Mar 24, 2023

This removes all the submodules like SyntaxError and RangeError that had a single function in it - make - and moves these to the top level like makeRangeError and makeSyntaxError. This is more like the old Js.Exn module and makes the Intelliense menu a lot easier to navigate. You can quickly see the types of errors you can create. It is still a 2 step process - make then raise - even though in 99% of the cases the user will throw immediately; this is a step backward from the Js.Exn module that has raiseSyntaxError and other variants.

Before:

image

After:

image

@jmagaram jmagaram force-pushed the flattenErrorModule branch from 9a56378 to 2d18a18 Compare July 19, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant