Files
website/docs/api/interfaces/ErrorHandling.md
2023-09-04 23:27:10 +02:00

1.3 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
ErrorHandling Interface: ErrorHandling ErrorHandling 0 null

Since

2.0.0

Implemented by

Properties

keepAlive

keepAlive: number

Number of times the process should throw an error until crashing and exiting

Defined in

src/core/contracts/error-handling.ts:8

Methods

crash

crash(err): never

Deprecated

Version 4 will remove this method

Parameters

Name Type
err Error

Returns

never

Defined in

src/core/contracts/error-handling.ts:14


updateAlive

updateAlive(error): void

A function that is called on every crash. Updates keepAlive. If keepAlive is 0, the process crashes.

Parameters

Name Type
error Error

Returns

void

Defined in

src/core/contracts/error-handling.ts:20