A custom error that may contain additional properties
API
class CustomValidationError implements ValidationError { constructor(options?: ValidationErrorOptions | undefined): CustomValidationError; readonly kind: string; readonly field: FieldTree<unknown>; readonly message?: string | undefined;}
constructor
CustomValidationError@paramoptions
ValidationErrorOptions | undefined@returns
CustomValidationErrorkind
stringIdentifies the kind of error.
field
FieldTree<unknown>The field associated with this error.
message
string | undefinedHuman readable error message.
Jump to details