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