Skip to content

CustomInvestigationErrorDefinition ​

ts
type CustomInvestigationErrorDefinition = object;

An error class that CustomInvestigationOptions.investigate may throw to replace the method's original error.

Properties ​

errorConstructor ​

ts
errorConstructor: (...args) => Error;

Matched with instanceof against what investigate throws.

Parameters ​

args ​

...any[]

Returns ​

Error