Home Reference Source Test Repository
import ValidationError from 'plugged-in/src/errors/ValidationError.js'
public class | source

ValidationError

Extends:

Error → ValidationError

The validation error class.

Thrown by the SchemaValidator when an invalid object is passed into the validate() method.

Constructor Summary

Public Constructor
public

constructor(message: String)

Create a new instance.

Member Summary

Public Members
public get

name: String: *

Public Constructors

public constructor(message: String) source

Create a new instance.

Params:

NameTypeAttributeDescription
message String

the error message

Public Members

public get name: String: * source

Return:

String

the error name