source: imaps-frontend/node_modules/ajv/lib/runtime/validation_error.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • 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.