@lucid-softworks/error-cause-chain
v0.1.0
Published
Traverse Error causes with cycle protection.
Maintainers
Readme
@lucid-softworks/error-cause-chain
Collect an error and its transitive cause values. Traversal includes a final
non-Error cause and stops safely if malformed errors contain a cause cycle.
import { errorCauseChain } from "@lucid-softworks/error-cause-chain";
const chain = errorCauseChain(error);