UNPKG
@tvkitchen/countertop
Version:
latest (0.4.2)
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
The entry point for developers who want to set up a TV Kitchen.
tv.kitchen
tvkitchen/tv-kitchen
@tvkitchen/countertop
/
src
/
errors
/
ValidationError.ts
15 lines
(12 loc)
•
284 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
type { ErrorObject } from
'ajv'
export
class
ValidationError
extends
Error
{
public
errors?: ErrorObject[] |
null
public
constructor
( message?: string, errors?: ErrorObject[] |
null
, ) {
super
(message)
this
.name =
this
.
constructor
.name
this
.errors = errors } }