errors.add(Message.of("Bad request reason #" + count));
}
throw BadRequestException.of(errors);
}
});
<BUG>newController.createAction("fail_with_multiple_i18n_messages")
.setHandler(new RequestHandler() {</BUG>
@Override
public void handle(Request request, Response response) {
List<BadRequestException.Message> errors = Lists.newArrayList();

errors.add(Message.of("Bad request reason #" + count));
}
throw BadRequestException.of(errors);
}
});
newController.createAction("fail_with_multiple_i18n_messages")
.createParam("count", "Number of error messages to generate")
.setHandler(new RequestHandler() {
@Override
public void handle(Request request, Response response) {
List<BadRequestException.Message> errors = Lists.newArrayList();
