Skip to main content

Interface: ErrorHandling

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

NameType
errError

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

NameType
errorError

Returns

void

Defined in

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