# DataGridDataErrorContext (@salmonui/data-grid)

> The DataGridDataErrorContext interface of @salmonui/data-grid: Context of renderError (the data source failed to load).

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridDataErrorContext

```ts
import type { DataGridDataErrorContext } from '@salmonui/data-grid';
```

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

## Reference

Kind: interface

```ts
interface DataGridDataErrorContext {
    readonly error: unknown;
    readonly message: string;
    retry(): void;
}
```

Context of `renderError` (the data source failed to load).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `error` | `readonly error: unknown;` |  |  |
| `message` | `readonly message: string;` |  | `error.message` when the error is an `Error`, else its string form. |
| `retry` | `retry(): void;` |  | Re-reads the data source with the current query. |
