UNPKG

haystack-nclient

Version:

Project Haystack Network Client

18 lines (17 loc) 473 B
import { HGrid } from 'haystack-core'; /** * An error that encapsulates a grid. */ export declare class GridError extends Error { readonly grid: HGrid; readonly _isGridError = true; constructor(message: string, grid: HGrid); toGrid(): HGrid; } /** * Return ture if the error is a grid error. * * @param error The error to test. * @returns True if the error is a grid error. */ export declare function isGridError(error: unknown): error is GridError;