(to_error_label?: ((err: Error, origin: UncaughtExceptionOrigin) => string | null) | undefined, map_error_text?: ((err: Error, origin: UncaughtExceptionOrigin) => string | null) | undefined, handle_error?: (err: Error, origin: UncaughtExceptionOrigin) => void): void Attaches the 'uncoughtException' event to despawn all processes,
and enables custom error logging with to_error_label.
to_error_label?
- Customize the error label or return null for the default origin.
((err: Error, origin: UncaughtExceptionOrigin) => string | null) | undefinedmap_error_text?
- Customize the error text. Return '' to silence, or null for the default print_error(err).
((err: Error, origin: UncaughtExceptionOrigin) => string | null) | undefinedhandle_error
(err: Error, origin: UncaughtExceptionOrigin) => void() =>
process.exit(1)returns
void