Grid configuration error
GridConfigurationError, GridConfigurationErrorCode, GridConfigurationErrorOptions: 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#
A grid configuration the grid cannot run with.
class GridConfigurationError extends Error {
readonly code: GridConfigurationErrorCode;
readonly field: string;
readonly constraint: string;
readonly value: unknown;
constructor({ code, field, constraint, value, message, }: GridConfigurationErrorOptions);
}Types#
The closed set of configuration mistakes the grid refuses.
type GridConfigurationErrorCode =
| 'GRID_ROW_ID_MISSING'
| 'GRID_SERVER_OPTIONS_INVALID'
| 'GRID_DIRECTION_INVALID';interface GridConfigurationErrorOptions {
code: GridConfigurationErrorCode;
field: string;
constraint: string;
value?: unknown;
message: string;
}