class CustomError extends Error { constructor(...args) { super(args) } } CustomError.constructor.name = 'CustomError' export default CustomError