diff --git a/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java b/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java index f6a08b240999a3f2fa51f14397a117277fbdb147..d5b85f8cc31396b18593ae20504e852e7b78a904 100644 --- a/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java +++ b/src/main/java/io/choerodon/manager/app/service/impl/ConfigServiceImpl.java @@ -6,7 +6,7 @@ import com.github.pagehelper.PageInfo; import io.choerodon.base.domain.PageRequest; import io.choerodon.core.exception.CommonException; import io.choerodon.core.exception.ext.NotExistedException; -import io.choerodon.core.exception.ext.UpdateExcetion; +import io.choerodon.core.exception.ext.UpdateException; import io.choerodon.manager.api.dto.*; import io.choerodon.manager.app.service.ConfigService; import io.choerodon.manager.infra.asserts.ConfigAssertHelper; @@ -94,12 +94,12 @@ public class ConfigServiceImpl implements ConfigService { if (defaultDto != null) { defaultDto.setIsDefault(false); if (configMapper.updateByPrimaryKeySelective(defaultDto) != 1) { - throw new UpdateExcetion("error.config.update"); + throw new UpdateException("error.config.update"); } } dto.setIsDefault(true); if (configMapper.updateByPrimaryKeySelective(dto) != 1) { - throw new UpdateExcetion("error.config.update"); + throw new UpdateException("error.config.update"); } } return ConfigConverter.dto2Vo(dto); diff --git a/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java b/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java index 0f3c4846d368fd96b3500016b6c4ca6509f6340b..91f39252501cbf970a73ca3a962425bed6c90f63 100644 --- a/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java +++ b/src/main/java/io/choerodon/manager/app/service/impl/RouteServiceImpl.java @@ -6,7 +6,7 @@ import com.github.pagehelper.PageInfo; import io.choerodon.base.domain.PageRequest; import io.choerodon.core.exception.CommonException; import io.choerodon.core.exception.ext.InsertException; -import io.choerodon.core.exception.ext.UpdateExcetion; +import io.choerodon.core.exception.ext.UpdateException; import io.choerodon.core.swagger.ChoerodonRouteData; import io.choerodon.manager.app.service.RouteService; import io.choerodon.manager.infra.asserts.RouteAssertHelper; @@ -122,7 +122,7 @@ public class RouteServiceImpl implements RouteService { } route.setBuiltIn(null); if (routeMapper.updateByPrimaryKeySelective(routeDTO) != 1) { - throw new UpdateExcetion("error.route.update"); + throw new UpdateException("error.route.update"); } modifyRouteFromGoRegister(routeDTO, ADD_ZUUL_ROOT_URL, "error to update route to register server"); return routeMapper.selectByPrimaryKey(id); diff --git a/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java b/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java index 5979f5deabfb8a4ebf59a633f22d3df935773e56..4b6aa73dafb7cbfdfc14981df8bfd86f6b265470 100644 --- a/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java +++ b/src/main/java/io/choerodon/manager/infra/asserts/RouteAssertHelper.java @@ -1,6 +1,6 @@ package io.choerodon.manager.infra.asserts; -import io.choerodon.core.exception.ext.AlreadyExsitedException; +import io.choerodon.core.exception.ext.AlreadyExistedException; import io.choerodon.core.exception.ext.IllegalArgumentException; import io.choerodon.core.exception.ext.NotExistedException; import io.choerodon.manager.infra.dto.RouteDTO; @@ -58,7 +58,7 @@ public class RouteAssertHelper extends AssertHelper { RouteDTO dto = new RouteDTO(); dto.setName(name); if (routeMapper.selectOne(dto) != null) { - throw new AlreadyExsitedException("error.route.name.existed"); + throw new AlreadyExistedException("error.route.name.existed"); } } @@ -66,7 +66,7 @@ public class RouteAssertHelper extends AssertHelper { RouteDTO dto = new RouteDTO(); dto.setPath(path); if (routeMapper.selectOne(dto) != null) { - throw new AlreadyExsitedException("error.route.path.existed"); + throw new AlreadyExistedException("error.route.path.existed"); } }