ValidationError

ValidationError

A Error class that will be thrown when a CloudEvent cannot be properly validated against a specification.

Constructor

new ValidationError(message, errorsopt)

Constructs a new {ValidationError} with the message and array of additional errors.

Parameters:
Name Type Attributes Description
message string

the error message

errors Array.<string> | Array.<ErrorObject> <optional>

any additional errors related to validation

Source: