Files
website/docs/api/classes/DefaultErrorHandling.md
Jacob Nguyen 49a910f90a fix docs build
2023-06-30 21:56:51 -05:00

1.9 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
DefaultErrorHandling Class: DefaultErrorHandling DefaultErrorHandling 0 null

Since

2.0.0 Version 4.0.0 will internalize this api. Please refrain from using ModuleStore!

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/core/structures/services/error-handling.ts:14

Methods

crash

crash(err): never

Deprecated

Version 4 will remove this method

Parameters

Name Type
err Error

Returns

never

Implementation of

ErrorHandling.crash

Defined in

src/core/structures/services/error-handling.ts:10


updateAlive

updateAlive(err): void

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

Parameters

Name Type
err Error

Returns

void

Implementation of

ErrorHandling.updateAlive

Defined in

src/core/structures/services/error-handling.ts:16