SignUp-StealWheel opened a new issue #3494: URL: https://github.com/apache/rocketmq/issues/3494
如下图所示,本地事务执行过程中直接抛出一个RuntimeException。  当异常发生后调用方无法捕获到抛出的异常,只接收到了TransactionSendResult,此时TransactionSendResult中的SendStatus为SEND_OK并且LocalTransactionState为UNKNOW,在TransactionSendResult类中没有找到任何和原始异常相关的信息,我应该如何捕获原始异常呢? 如下图所示逻辑,我的目的是根据原始异常信息来判断给前端返回什么错误信息(例如:service逻辑中的某些参数限制条件不满足抛出的错误),但我只能做到如下图所示的逻辑,在不引入其他组件的前提下有什么好的实现方法吗?  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
