main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
336 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | import type {ErrorObject} from "../types"
|
---|
| 2 |
|
---|
| 3 | export 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.