Add wrapper function for exceptions

I'm not sure if this helper function is something you want to include in fantasy-eithers, but I've found it to be useful when interoperating with other JS.