FormError

An explicit form error with useful information for the user.

FormError inherits from the default Error 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

Parameters