code: public void addError(String error) {
      ActionMessages messages = (ActionMessages) next.get(Flash.MESSAGES);
      if (null == messages) {
        messages = new ActionMessages();
        put(Flash.MESSAGES, messages);
      }
      messages.getErrors().add(error);
    }
docs: 添加错误消息到下一次请求
  
  @param error