Skip to main content

Class: DefaultErrorHandling

Since

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

Implements

Constructors

constructor

new DefaultErrorHandling(): DefaultErrorHandling

Returns

DefaultErrorHandling

Properties

#keepAlive

Private #keepAlive: number = 1

Defined in

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

Methods

crash

crash(err): never

Parameters

NameType
errError

Returns

never

Deprecated

Version 4 will remove this method

Implementation of

ErrorHandling.crash

Defined in

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


updateAlive

updateAlive(err): void

A function that is called on every throw.

Parameters

NameType
errError

Returns

void

Implementation of

ErrorHandling.updateAlive

Defined in

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