Skip to main content

ValidationError class

Represents a Schema validation error.

This can occur when a method of the agent is invoked with certain parameters or the returned value doesn't match the declared plugin schema.

Signature:

export declare class ValidationError extends Error

Extends: Error

Constructors

ConstructorModifiersDescription
(constructor)(message, method, code, path, description)Constructs a new instance of the ValidationError class

Properties

PropertyModifiersTypeDescription
codestring
descriptionstring
messagestring
methodstring
pathstring