import { ValidationError } from './ValidationError'; export class ReservedKeyFoundError extends ValidationError { constructor(reservedKey: string, itemIndex: number) { super({ message: 'Invalid output format', description: `An output item contains the reserved key ${reservedKey}. To get around this, please wrap each item in an object, under a key called json. Example`, itemIndex, }); } }