mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
1.2 KiB
1.2 KiB
id, title, sidebar_label, sidebar_position, custom_edit_url
| id | title | sidebar_label | sidebar_position | custom_edit_url |
|---|---|---|---|---|
| ErrorHandling | Interface: ErrorHandling | ErrorHandling | 0 | null |
Implemented by
Properties
keepAlive
• keepAlive: number
Number of times the process should throw an error until crashing and exiting
Defined in
src/handler/contracts/errorHandling.ts:8
Methods
crash
▸ crash(error): never
Utility function to crash
Parameters
| Name | Type |
|---|---|
error |
Error |
Returns
never
Defined in
src/handler/contracts/errorHandling.ts:14
updateAlive
▸ updateAlive(error): void
A function that is called on every crash. Updates keepAlive
Parameters
| Name | Type |
|---|---|
error |
Error |
Returns
void