# Type Alias: OnErrorHandler (/pixi-vn/index/type-aliases/OnErrorHandler)



\> **OnErrorHandler** = (`error`, `props`) => `void` | `Promise`\<`void`>

Defined in: [src/core/OnErrorHandler.ts:7](https://github.com/DRincs-Productions/pixi-vn/blob/5bb5bb1f92e38998ea2f477b600168d8da3ece19/src/core/OnErrorHandler.ts#L7)

Type for on-error handlers. Handlers accept the error object and the step
props; they may be synchronous or asynchronous.

## Parameters [#parameters]

### error [#error]

`unknown`

### props [#props]

`Partial`\<`StepLabelProps`>

## Returns [#returns]

`void` | `Promise`\<`void`>
