Creates a new ValidationError instance.
The array of issues that caused the validation error.
The error message. If omitted then issues
are converted to a string using
ValidationError.formatIssues and used as a message.
The array of issues that caused the error.
Static
formatThe global function that stringifies issues as an error message, if a message is omitted when ValidationError is instantiated.
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.