Files
archived-sern-website/docs/api/interfaces/ErrorHandling.md
2022-12-28 22:43:41 +03:00

1.2 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

Implemented by

Properties

keepAlive

keepAlive: number

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

Defined in

src/handler/contracts/errorHandling.ts:9

Methods

crash

crash(error): never

Utility function to crash

Parameters

Name Type
error Error

Returns

never

Defined in

src/handler/contracts/errorHandling.ts:15


updateAlive

updateAlive(error): void

A function that is called on every crash. Updates keepAlive

Parameters

Name Type
error Error

Returns

void

Defined in

src/handler/contracts/errorHandling.ts:21