|
@@ -686,7 +686,11 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
|
} catch (Exception e) {
|
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
|
- throw new RuntimeException(e);
|
|
|
+ if (e instanceof BusinessException) {
|
|
|
+ throw new BusinessException(e.getMessage());
|
|
|
+ } else {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|