verror-0
Version:
VError without dependencies on top of nodejs standart library
14 lines (13 loc) • 348 B
TypeScript
export type Info = Record<string, unknown>;
export type Options = {
cause?: Error | null;
name?: string;
skipCauseMessage?: boolean;
info?: Info;
strict?: boolean;
/**
* Maximum number of nested `cause` errors to traverse when building the final error message.
* Default: 3.
*/
maxCauseDepth?: number;
};