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

Constructors

Properties

Constructors

  • Creates a new ValidationError instance.

    Parameters

    • issues: Issue[]

      The array of issues that caused the error.

    • Optionalmessage: string

      The error message.

    Returns ValidationError

Properties

issues: Issue[]

The array of issues that caused the error.