Grid export error
GridExportError, GridExportErrorCode, GridExportErrorOptions: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Functions, hooks and constants#
Why a grid export did not produce a file.
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);
}Types#
The closed set of export failures the grid names.
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';What a Grid 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.
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[];
}