Constructs a work done error.
A workload the work is done for.
The work already done, if any.
The reason of work failure, or undefined if the work completed successfully.
Custom error message.
Readonly reasonThe reason of work failure, or undefined if the work completed successfully.
Optional stackReadonly workThe work already done, if any.
Readonly workloadA workload the work is done for.
Static Optional prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static stackStatic captureGenerated using TypeDoc
An error indicating the work is already done.