Skip to main content

Class: DefaultErrorHandling

Since

2.0.0

Implements

Constructors

constructor

new DefaultErrorHandling()

Properties

keepAlive

keepAlive: number = 5

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

Implementation of

ErrorHandling.keepAlive

Defined in

src/handler/contracts/errorHandling.ts:29

Methods

crash

crash(error): never

Utility function to crash

Parameters

NameType
errorError

Returns

never

Implementation of

ErrorHandling.crash

Defined in

src/handler/contracts/errorHandling.ts:30


updateAlive

updateAlive(_): void

A function that is called on every crash. Updates keepAlive

Parameters

NameType
_Error

Returns

void

Implementation of

ErrorHandling.updateAlive

Defined in

src/handler/contracts/errorHandling.ts:33