| java.lang.Object java.lang.Throwable java.lang.Exception org.springframework.validation.BindException
Field Summary | |
final public static String | ERROR_KEY_PREFIX Prefix for the name of the BindException instance in a model,
followed by the object name. |
Method Summary | |
public void | addAllErrors(Errors errors) | public void | addError(ObjectError error) | public boolean | equals(Object other) | public List | getAllErrors() | final public BindingResult | getBindingResult() Return the BindingResult that this BindException wraps. | public int | getErrorCount() | public FieldError | getFieldError() | public FieldError | getFieldError(String field) | public int | getFieldErrorCount() | public int | getFieldErrorCount(String field) | public List | getFieldErrors() | public List | getFieldErrors(String field) | public Class | getFieldType(String field) | public Object | getFieldValue(String field) | public ObjectError | getGlobalError() | public int | getGlobalErrorCount() | public List | getGlobalErrors() | public String | getMessage() Returns diagnostic information about the errors held in this object. | public Map | getModel() | public String | getNestedPath() | public String | getObjectName() | final public PropertyEditorRegistry | getPropertyEditorRegistry() Return the PropertyEditorRegistry that the underlying BindingResult uses. | public String[] | getSuppressedFields() | public Object | getTarget() | public boolean | hasErrors() | public boolean | hasFieldErrors() | public boolean | hasFieldErrors(String field) | public boolean | hasGlobalErrors() | public int | hashCode() | public void | popNestedPath() | public void | pushNestedPath(String subPath) | public void | recordSuppressedField(String fieldName) | public void | reject(String errorCode) | public void | reject(String errorCode, String defaultMessage) | public void | reject(String errorCode, Object[] errorArgs, String defaultMessage) | public void | rejectValue(String field, String errorCode) | public void | rejectValue(String field, String errorCode, String defaultMessage) | public void | rejectValue(String field, String errorCode, Object[] errorArgs, String defaultMessage) | public String[] | resolveMessageCodes(String errorCode, String field) | public void | setNestedPath(String nestedPath) |
BindException | public BindException(BindingResult bindingResult)(Code) | | Create a new BindException instance for a BindingResult.
Parameters: bindingResult - the BindingResult instance to wrap |
BindException | public BindException(Object target, String objectName)(Code) | | Create a new BindException instance for a target bean.
Parameters: target - target bean to bind onto Parameters: objectName - the name of the target object See Also: BeanPropertyBindingResult |
getErrorCount | public int getErrorCount()(Code) | | |
getFieldErrorCount | public int getFieldErrorCount()(Code) | | |
getFieldErrorCount | public int getFieldErrorCount(String field)(Code) | | |
getGlobalErrorCount | public int getGlobalErrorCount()(Code) | | |
getGlobalErrors | public List getGlobalErrors()(Code) | | |
getMessage | public String getMessage()(Code) | | Returns diagnostic information about the errors held in this object.
|
getSuppressedFields | public String[] getSuppressedFields()(Code) | | |
hasErrors | public boolean hasErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors(String field)(Code) | | |
hasGlobalErrors | public boolean hasGlobalErrors()(Code) | | |
hashCode | public int hashCode()(Code) | | |
pushNestedPath | public void pushNestedPath(String subPath)(Code) | | |
recordSuppressedField | public void recordSuppressedField(String fieldName)(Code) | | |
setNestedPath | public void setNestedPath(String nestedPath)(Code) | | |
|
|