import { type Class, AppError } from '@travetto/runtime'; import type { IndexConfig } from '../registry/types.ts'; import type { ModelType } from '../types/model.ts'; /** * Represents when an index is invalid */ export class IndexNotSupported extends AppError { constructor(cls: Class, idx: IndexConfig, message: string = '') { super(`${typeof cls === 'string' ? cls : cls.name} and index ${idx.name} of type ${idx.type} is not supported. ${message}`.trim(), { category: 'data' }); } }