Files
website/docs/api/classes/DefaultErrorHandling.md
2024-05-05 19:29:58 +00:00

1.8 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 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

Name Type
err Error

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

Name Type
err Error

Returns

void

Implementation of

ErrorHandling.updateAlive

Defined in

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