prontera / spring-cloud-rest-tcc

以Spring Cloud Netflix作为服务治理基础, 展示基于tcc思想所实现的分布式事务解决方案
2.58k stars 1.21k forks source link

异常包装有个地方看不懂 #53

Closed louisxinyu closed 5 years ago

louisxinyu commented 5 years ago

fatal(RestStatus status, Object... details)

使用时: Shift.fatal(StatusCode.INSUFFICIENTPRODUCT); 但我StatusCode 已 implements RestStatus ~~ 提示:fatal (com.....RestStatus, Object...) in Shift cannot be applied to (com...StatusCode)

louisxinyu commented 5 years ago

这个我是想拿出来自己写个demo 试试遇到这个情况,是其它地方还有什么关键配置么?

louisxinyu commented 5 years ago

额,我自己弄错了