Classes: CompositeInputFormatterError

CompositeInputFormatterError


new CompositeInputFormatterError(fieldsOrMessage)

Custom error type that can be used in compositInputFormatters to indicate that one of the values of the sub-fields is invalid.

Parameters:
Name Type Description
fieldsOrMessage object | string

A string indicating a general error message, or a map of error strings per field

Source: