fix: Use `new Error` to establish the prototype chain.

* Setting `e.prototype = Error.prototype` leads to false equivalence when using the `instanceof` operator.

fixes #1