FormError
An explicit form error with useful information for the user.
FormErrorinherits from the defaultErrorclass.
// For general errors
new FormError<Values>(message);
// For general and field errors
new FormError<Values>(message, errors);
// For field errors only
new FormError<Values>(errors);
Generic
- Values- FieldValues
Parameters
- message- string
- errors- FormErrors