Class ValidationError

An error thrown if parsing failed. Custom check callbacks, refinement predicates, converters, and fallback functions can throw this error to notify that the operation has failed.

Hierarchy

  • Error
    • ValidationError

Constructors

Properties

Methods

Constructors

Properties

issues: Issue[]

The array of issues that caused the error.

Methods

  • The global function that stringifies issues as an error message, if a message is omitted when ValidationError is instantiated.

    Parameters

    Returns string