Example usage for org.springframework.validation FieldError toString

List of usage examples for org.springframework.validation FieldError toString

Introduction

In this page you can find the example usage for org.springframework.validation FieldError toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:org.dspace.EDMExport.controller.homeController.java

/**
 * Mtodo para logar los errores del objeto que une los datos de la peticin
 * //from ww w  .  j  av  a  2s .  c  o  m
 * @param result objeto que une la peticin {@link BindingResult}
 */
private void logErrorValid(BindingResult result) {
    for (Object object : result.getAllErrors()) {
        if (object instanceof FieldError) {
            FieldError fieldError = (FieldError) object;
            logger.debug(fieldError.toString());
        }
    }
}