Class: ErrorMapping

qui.forms.ErrorMapping(errors)

A mapping of form errors associated to their corresponding field names.

Constructor

new ErrorMapping(errors)

Parameters:
Name Type Description
errors Error | Object.<String, Error> | qui.forms.ErrorMapping

one of:

  • a single error that will be associated to the form itself
  • a dictionary with errors mapped to field names which will be used as is
  • another error mapping object from which errors will be copied
Source:

Extends

  • Error