异常处理机制
LiteFlow中执行器FlowExecutor支持两种方式来执行一个流程,
- execute方法,返回Slot实现类对象,直接抛出异常信息,业务系统自行处理异常;
public <T extends Slot> T execute(String chainId, Object param, Class<T> slotClazz,
Integer slotIndex, boolean isInnerChain) throws Exception
- execute2Resp方法,返回LiteflowResponse类对象,异常信息包装在LiteflowResponse类中。
public <T extends Slot> LiteflowResponse<T> execute2Resp(String chainId, Object param, Class<T> slotClazz, Integer slotIndex,
boolean isInnerChain)
帮助我们改善此文档 (opens new window)
上次更新: 2022/10/07, 00:22:18