1 import type {ErrorObject} from "../types"
3 export default class ValidationError extends Error {
4 readonly errors: Partial<ErrorObject>[]
6 readonly validation: true
8 constructor(errors: Partial<ErrorObject>[]) {
9 super("validation failed")
11 this.ajv = this.validation = true