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

Add ability to specify Error.name

Open zudov opened this issue 7 years ago • 1 comments

Currently, there is an accessor for Error.name (name :: Error -> String). It would be nice to have a helper that allows to create an error with a given name, like namedError :: String -> String -> Error.

zudov avatar Aug 14 '18 13:08 zudov

Not sure if it's absence is intentional, but seems reasonable to me.

JordanMartinez avatar Dec 04 '21 04:12 JordanMartinez