Custom error classes and utilities.
yarn add @pacote/error
BaseError is an error class which provides a convenience static imprint() method to get around issues with extending the built-in JavaScript Error class. It's by no means a bullet-proof solution and full support is not available in older browsers (such as Internet Explorer up to version 10).
MIT © Luís Rodrigues.