BaseErrorOptionsinterface

{
	[key: string]: unknown;
	caller?: AnyCaller | undefined;
}
PropertyType
.callerAnyCaller
Modify the stack to trim off lines after a certain calling function.

Options for BaseError that provide additional helpful error functionality.

  • Extends the built-in ErrorOptions (so cause is supported) and adds a caller plus arbitrary contextual fields.