mirror of
https://github.com/sern-handler/website
synced 2026-06-18 05:42:20 +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 |
Since
2.0.0
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:11
Methods
crash
▸ crash(error): never
Utility function to crash
Parameters
| Name | Type |
|---|---|
error |
Error |
Returns
never
Defined in
src/handler/contracts/errorHandling.ts:17
updateAlive
▸ updateAlive(error): void
A function that is called on every crash. Updates keepAlive
Parameters
| Name | Type |
|---|---|
error |
Error |
Returns
void