source: trip-planner-front/node_modules/ajv/lib/runtime/validation_error.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 336 bytes
Line 
1import type {ErrorObject} from "../types"
2
3export default class ValidationError extends Error {
4 readonly errors: Partial<ErrorObject>[]
5 readonly ajv: true
6 readonly validation: true
7
8 constructor(errors: Partial<ErrorObject>[]) {
9 super("validation failed")
10 this.errors = errors
11 this.ajv = this.validation = true
12 }
13}
Note: See TracBrowser for help on using the repository browser.