企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 一、详细的执行记录 执行过程中,发生了任何需要记录下的信息,包括异常情况,都可以通过`StringBuilder errorMessage`参数来追加,这个参数通过`protected void doInRayPeriodJob(SysJobExecution sysjobexecution, StringBuilder errorMessage)`注入进来; ### **举例** ``` @Override protected void doInRayPeriodJob(SysJobExecution sysjobexecution, StringBuilder errorMessage) { List<CardSource> cardSourceList = cardSourceDao.getCardSourceList(); for (CardSource cardSource : cardSourceList) { try { ApiFacade.refreshApiResource(cardSource); } catch (Exception e) { errorMessage.append(ExceptionUtil.getFullStackTraceAsString(e)); } } } ```