mirror of
https://github.com/SrIzan10/sern-website.git
synced 2026-05-01 11:05:20 +00:00
1.6 KiB
1.6 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 |
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/handler/contracts/errorHandling.ts:24
Methods
crash
▸ crash(error): never
Utility function to crash
Parameters
| Name | Type |
|---|---|
error |
Error |
Returns
never
Implementation of
Defined in
src/handler/contracts/errorHandling.ts:25
updateAlive
▸ updateAlive(e): void
A function that is called on every crash. Updates keepAlive
Parameters
| Name | Type |
|---|---|
e |
Error |
Returns
void