Class: DefaultErrorHandling
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
Defined in
src/core/structures/services/error-handling.ts:13
Methods
crash
▸ crash(err): never
Deprecated
Version 4 will remove this method
Parameters
| Name | Type |
|---|---|
err | Error |
Returns
never
Implementation of
Defined in
src/core/structures/services/error-handling.ts:9
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