Fix error handling for Import Operation.

Remove some old icons
This commit is contained in:
Paulo Gustavo Veiga
2012-06-07 19:45:22 -03:00
parent 907f31c030
commit 6f923656ee
10 changed files with 243 additions and 28 deletions

View File

@@ -35,9 +35,8 @@ public class BaseController {
@ExceptionHandler(IllegalArgumentException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
@ResponseBody
public String handleClientErrors(@NotNull Exception ex) {
ex.printStackTrace();
return ex.getMessage();
public RestErrors handleClientErrors(@NotNull IllegalArgumentException ex) {
return new RestErrors(ex.getMessage());
}
@ExceptionHandler(Exception.class)