修改无法获取业务类型对应的maat.xml内容时,抛出更详细的异常

This commit is contained in:
RenKaiGe-Office
2018-07-10 10:07:50 +08:00
parent 8779654c02
commit d3901bb713

View File

@@ -707,7 +707,11 @@ public class ConfigRedisServiceimpl implements ConfigRedisService {
}
}
} else {
throw new RuntimeException("后台错误:无法获取业务类型" + service + "对应的maat规则或传入的配置信息有误,请检查!");
if(maatXmlConfig==null) {
throw new RuntimeException("后台错误:无法获取业务类型" + service + "对应的maat规则,请检查maat.xml");
}else {
throw new RuntimeException("后台错误:后台组装的配置信息有误,请联系管理员检查");
}
}
}
@@ -1132,7 +1136,13 @@ public class ConfigRedisServiceimpl implements ConfigRedisService {
}
}
} else {
throw new RuntimeException("后台错误:无法获取业务类型" + service + "对应的maat规则或传入的配置信息有误,请检查!");
if(maatXmlConfig==null) {
throw new RuntimeException("后台错误:无法获取业务类型" + service + "对应的maat规则,请检查maat.xml");
}else {
int idRelaRedisDBIndex = Configurations.getIntProperty("idRelaRedisDBIndex", 15);
throw new RuntimeException("后台错误:"+idRelaRedisDBIndex+"号redis库中存储的分组和域关系有误,请联系管理员检查数据");
}
}
}