# PivotErrorEvent (@salmonui/pivot-table)

> The PivotErrorEvent interface of @salmonui/pivot-table: onError.

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotErrorEvent

```ts
import type { PivotErrorEvent } from '@salmonui/pivot-table';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table.md).

## Reference

Kind: interface

```ts
interface PivotErrorEvent extends PivotEvent {
    readonly error: Error;
    readonly action: PivotAction | 'compute' | 'drillThrough' | 'export' | 'restore';
}
```

`onError`.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `error` | `readonly error: Error;` |  |  |
| `action` | `readonly action: PivotAction \| 'compute' \| 'drillThrough' \| 'export' \| 'restore';` |  |  |
| `type` | `type: string;` | inherited | `'sortChange'`, `'beforeSortChange'`, ... |
| `source` | `source: DataGridEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited | True after `preventDefault()` (before-events and click events). |
| `preventDefault` | `preventDefault: () => void;` | inherited | Before-events and click events: cancels the action (or the built-in behavior). |
