typescript-chained-error
JSON →A TypeScript library for chaining custom errors with a 'Caused by' clause in stack traces. Version 1.6.0 is current, with a moderate release cadence. It preserves error class names using ts-custom-error, optionally cleans stack traces via clean-stack, and provides a ChainedErrorFactory to extend existing errors with cause chains. Key differentiators include 100% test coverage, healthcare-grade usage, and support for multiple error causes in a chain.
Resources
packagetypescript-chained-error ↗