gameStatusUpdate/node_modules/ajv/lib/runtime/validation_error.ts

14 lines
336 B
TypeScript
Raw Normal View History

2024-09-18 08:27:46 -07:00
import type {ErrorObject} from "../types"
export default class ValidationError extends Error {
readonly errors: Partial<ErrorObject>[]
readonly ajv: true
readonly validation: true
constructor(errors: Partial<ErrorObject>[]) {
super("validation failed")
this.errors = errors
this.ajv = this.validation = true
}
}