import { ErrorName } from '../constants'; import { DiagnosticError } from './DiagnosticError'; /** * @internalapi * Error that is thrown when there are invalid options passed to a test. */ export class InvalidOptionsError< T extends Record > extends DiagnosticError { reasons: Partial> = {}; constructor(reasons: Partial>) { super( undefined, 'Some of the options passed to this test were unable to be validated.', ); this.reasons = reasons; this.name = ErrorName.InvalidOptionsError; } }