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