purescript-exceptions
purescript-exceptions copied to clipboard
Exception effects
**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...
It seems clear that this package is intended to catch `Error` exceptions. However, `catchException` does this: ``` try { return t(); } catch (e) { if (e instanceof Error ||...
Currently, there is an accessor for [Error.name](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name) (`name :: Error -> String`). It would be nice to have a helper that allows to create an error with a given name,...