purescript-exceptions icon indicating copy to clipboard operation
purescript-exceptions copied to clipboard

Add errorWithName constructor

Open jedimahdi opened this issue 2 years ago • 0 comments

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)

jedimahdi avatar Nov 26 '23 20:11 jedimahdi