FormError
An explicit form error with useful information for the user.
FormError
inherits from the defaultError
class.
// 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