Class DefaultBindingErrorProcessor

java.lang.Object
org.springframework.validation.DefaultBindingErrorProcessor
All Implemented Interfaces:
BindingErrorProcessor

public class DefaultBindingErrorProcessor extends Object implements BindingErrorProcessor
Default BindingErrorProcessor implementation.

Uses the "required" error code and the field name to resolve message codes for a missing field error.

Creates a FieldError for each PropertyAccessException given, using the PropertyAccessException's error code ("typeMismatch", "methodInvocation") for resolving message codes.

Since:
1.2
Author:
Alef Arendsen, Juergen Hoeller
See Also:
  • Field Details

    • MISSING_FIELD_ERROR_CODE

      public static final String MISSING_FIELD_ERROR_CODE
      Error code that a missing field error (i.e. a required field not found in the list of property values) will be registered with: "required".
      See Also:
  • Constructor Details

    • DefaultBindingErrorProcessor

      public DefaultBindingErrorProcessor()
  • Method Details