---
id: "packages/active-grid/api/grid-export-error"
title: "Grid export error"
description: "GridExportError, GridExportErrorCode, GridExportErrorOptions: generated from the source of active-grid."
url: "/packages/active-grid/api/grid-export-error"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:grid-export-error"
---

# Grid export error

Exported by `@workspace/active-grid`. Generated from the package source; part of [the index of every export](/packages/active-grid/api).

## Functions, hooks and constants

**GridExportError**

```ts
class GridExportError extends Error {
  readonly code: GridExportErrorCode;
  readonly format?: GridExportFormat;
  readonly missingModule?: string;
  readonly family?: string;
  readonly detected?: FontByteFormat;
  readonly codePoint?: number;
  readonly reason?: PdfTextRefusalReason;
  readonly script?: string;
  readonly normalizable?: boolean;
  readonly families?: readonly string[];
  constructor(message: string, options: GridExportErrorOptions);
}
```

Why a grid export did not produce a file.

## Types

**GridExportErrorCode**

```ts
type GridExportErrorCode =
  | 'EXPORT_DEPENDENCY_MISSING'
  | 'EXPORT_FONT_REQUIRED'
  | 'EXPORT_FONT_FORMAT_UNSUPPORTED'
  | 'EXPORT_FONT_FACE_MISSING'
  | 'EXPORT_FONT_SOURCE_INVALID'
  | 'EXPORT_FONT_LOAD_FAILED'
  | 'EXPORT_TEXT_UNSUPPORTED'
  | 'EXPORT_GLYPH_COVERAGE';
```

The closed set of export failures the grid names.

**GridExportErrorOptions**

```ts
interface GridExportErrorOptions {
  code: GridExportErrorCode;
  cause?: unknown;
  format?: GridExportFormat;
  missingModule?: string;
  family?: string;
  detected?: FontByteFormat;
  codePoint?: number;
  reason?: PdfTextRefusalReason;
  script?: string;
  normalizable?: boolean;
  families?: readonly string[];
}
```

What a {@link GridExportError} carries besides its code. Never the exported
text: a cell can hold personal data and hosts log these errors. At most one
code point and a script name.
