validator.onErrorUse(nothing());
} catch (ValidationException e) {
log.debug("Some validation errors occured: {}", e.getErrors());
}
}
throw new InterceptionException(
"There are validation errors and you forgot to specify where to go. Please add in your method "
+ "something like:\n"
+ "validator.onErrorUse(page()).of(AnyController.class).anyMethod();\n"
+ "or any view that you like.\n"
+ "If you didn't add any validation error, it is possible that a conversion error had happened.");
}
this.methodInfo.setResult(result);
methodExecutedEvent.fire(new MethodExecuted(method, methodInfo));
} catch (IllegalArgumentException e) {
throw new InterceptionException(e);
} catch (Exception e) {
throwIfNotValidationException(e, new InterceptionException(e));
}
}