Resultr=null; if (e instanceof FlowException) { r = Result.error(100, "接口被限流了"); } elseif (e instanceof DegradeException) { r = Result.error(101, "服务降级了"); } elseif (e instanceof ParamFlowException) { r = Result.error(102, "热点参数限流了"); } elseif (e instanceof AuthorityException) { r = Result.error(104, "授权规则不通过"); }