ServerWebInputException subclass that indicates a data binding or
validation failure.
| Modifier and Type | Field and Description |
|---|---|
| private final BindingResult |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAllErrors(Errors
the errors)Errors instance to merge inOverrides default org. Errors instance to this
Errors instance.
|
| public void | addError(ObjectError error)
Implements org. ObjectError or FieldError to the errors list.
|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public PropertyEditor | findEditor(String
the path of the property (name or nested path), or
field, Class<T> null if looking for an editor for all properties of the given typethe type of the property (can be valueType)null if a property
is given but should be specified in any case for consistency checking)Implements org. |
| public List | getAllErrors()
Overrides default org. |
| public final BindingResult | |
| public Object[] | getDetailMessageArguments()
Overrides org. Overrides default org. message code to resolve the problem "detail" for this exception
through a MessageSource.
|
| public Object[] | getDetailMessageArguments(MessageSource
the source, Locale MessageSource to use for the lookupthe locale)Locale to use for the lookupOverrides default org. getDetailMessageArguments() that uses the given
MessageSource for resolving the message argument values.
|
| public int | getErrorCount()
Overrides default org. |
| public FieldError | getFieldError()
Overrides default org. |
| public FieldError | getFieldError(String
the field name field)Overrides default org. |
| public int | getFieldErrorCount()
Overrides default org. |
| public int | getFieldErrorCount(String
the field name field)Overrides default org. |
| public List | getFieldErrors()
Implements org. |
| public List | getFieldErrors(String
the field name field)Overrides default org. |
| public Class | getFieldType(String
the field name field)Overrides default org. |
| public Object | getFieldValue(String
the field name field)Implements org. |
| public ObjectError | getGlobalError()
Overrides default org. |
| public int | getGlobalErrorCount()
Overrides default org. |
| public List | getGlobalErrors()
Implements org. |
| public String | getMessage()
Overrides org. |
| public Map | getModel()
Implements org. MODEL_KEY_PREFIX + objectName'
and the object itself as 'objectName'.
|
| public String | getNestedPath()
Overrides default org. Errors object.
|
| public String | getObjectName()
Implements org. |
| public PropertyEditorRegistry | getPropertyEditorRegistry()
Implements org. |
| public Object | getRawFieldValue(String
the field to check field)Implements org. |
| public String[] | getSuppressedFields()
Overrides default org. |
| public Object | getTarget()
Implements org. |
| public boolean | hasErrors()
Overrides default org. |
| public boolean | hasFieldErrors()
Overrides default org. |
| public boolean | hasFieldErrors(String
the field name field)Overrides default org. |
| public boolean | hasGlobalErrors()
Overrides default org. |
| public int | |
| public void | popNestedPath()
Overrides default org. |
| public void | pushNestedPath(String
the sub path to push onto the nested path stack subPath)Overrides default org. |
| public void | recordFieldValue(String
the field to record the value for field, Class<?> the type of the field type, Object the original value value)Overrides default org. |
| public void | recordSuppressedField(String field)
Overrides default org. |
| public void | reject(String
error code, interpretable as a message key errorCode)Overrides default org. |
| public void | reject(String
error code, interpretable as a message key errorCode, String fallback default message defaultMessage)Overrides default org. |
| public void | reject(String
error code, interpretable as a message key errorCode, Object[] error arguments, for argument binding via MessageFormat
(can be errorArgs, String null)fallback default message defaultMessage)Implements org. |
| public void | rejectValue(String
the field name (may be field, String null or empty String)error code, interpretable as a message key errorCode)Overrides default org. |
| public void | rejectValue(String
the field name (may be field, String null or empty String)error code, interpretable as a message key errorCode, String fallback default message defaultMessage)Overrides default org. |
| public void | rejectValue(String
the field name (may be field, String null or empty String)error code, interpretable as a message key errorCode, Object[] error arguments, for argument binding via MessageFormat
(can be errorArgs, String null)fallback default message defaultMessage)Implements org. |
| public Map | Returns: a Map with errors as key and resolves messages as value
Deprecated
for removal since 6.1. in favor of using
Resolve global and field errors to messages with the given
BindErrorUtils and
getAllErrors(), to be removed in 6.2
MessageSource and Locale.
|
| public String[] | resolveMessageCodes(String
the error code to resolve into message codes errorCode)Implements org. |
| public String[] | resolveMessageCodes(String
the error code to resolve into message codes errorCode, String the field to resolve message codes for field)Implements org. |
| public void | setNestedPath(String
nested path within this object,
e.g. "address" (defaults to "", nestedPath)null is also acceptable).
Can end with a dot: both "address" and "address." are valid.Overrides default org. |