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

Last change on this file since 188ee53 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.