mirror of
https://github.com/sern-handler/website
synced 2026-06-09 09:22:20 +00:00
62 lines
955 B
Markdown
62 lines
955 B
Markdown
---
|
|
id: "ErrorHandling"
|
|
title: "Interface: ErrorHandling"
|
|
sidebar_label: "ErrorHandling"
|
|
sidebar_position: 0
|
|
custom_edit_url: null
|
|
---
|
|
|
|
**`Since`**
|
|
|
|
2.0.0
|
|
|
|
## Implemented by
|
|
|
|
- [`DefaultErrorHandling`](../classes/DefaultErrorHandling.md)
|
|
|
|
## Methods
|
|
|
|
### crash
|
|
|
|
▸ **crash**(`err`): `never`
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type |
|
|
| :------ | :------ |
|
|
| `err` | `Error` |
|
|
|
|
#### Returns
|
|
|
|
`never`
|
|
|
|
**`Deprecated`**
|
|
|
|
Version 4 will remove this method
|
|
|
|
#### Defined in
|
|
|
|
[src/core/contracts/error-handling.ts:9](https://github.com/sern-handler/handler/blob/2106522/src/core/contracts/error-handling.ts#L9)
|
|
|
|
___
|
|
|
|
### updateAlive
|
|
|
|
▸ **updateAlive**(`error`): `void`
|
|
|
|
A function that is called on every throw.
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type |
|
|
| :------ | :------ |
|
|
| `error` | `Error` |
|
|
|
|
#### Returns
|
|
|
|
`void`
|
|
|
|
#### Defined in
|
|
|
|
[src/core/contracts/error-handling.ts:14](https://github.com/sern-handler/handler/blob/2106522/src/core/contracts/error-handling.ts#L14)
|