purescript-exceptions
purescript-exceptions copied to clipboard
Add errorWithName constructor
Description of the change
Add errorWithName constructor for creating Errors with a name.
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name
Closes #30
Checklist:
- [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
- [x] Linked any existing issues or proposals that this pull request should close
- [x] Updated or added relevant documentation
- [ ] Added a test for the contribution (if applicable)