diff --git a/src/main/java/neatlogic/framework/cmdb/exception/sync/CollectionNameFieldValueRepeatException.java b/src/main/java/neatlogic/framework/cmdb/exception/sync/CollectionNameFieldValueRepeatException.java new file mode 100644 index 0000000000000000000000000000000000000000..5f0f022b903c2bbd1fae4b15c4bd9d1b63a714f1 --- /dev/null +++ b/src/main/java/neatlogic/framework/cmdb/exception/sync/CollectionNameFieldValueRepeatException.java @@ -0,0 +1,24 @@ +/*Copyright (C) 2024 深圳极向量科技有限公司 All Rights Reserved. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see .*/ + +package neatlogic.framework.cmdb.exception.sync; + +import neatlogic.framework.exception.core.ApiRuntimeException; + +public class CollectionNameFieldValueRepeatException extends ApiRuntimeException { + public CollectionNameFieldValueRepeatException(String collection, String fieldValue) { + super("MongoDB集合“{0}”中name字段值“{1}”已存在", collection, fieldValue); + } +}