*/\r
package org.openo.holmes.common.exception;\r
\r
-public class CallException extends Exception {\r
- public CallException(String msg, Exception e) {\r
+public class CorrelationException extends Exception {\r
+\r
+ public CorrelationException(String msg, Exception e) {\r
super(msg, e);\r
}\r
\r
- public CallException(String msg) {\r
+ public CorrelationException(String msg) {\r
super(msg);\r
}\r
}
\ No newline at end of file
+++ /dev/null
-/**\r
- * Copyright 2017 ZTE Corporation.\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.openo.holmes.common.exception;\r
-\r
-public class DataFormatException extends Exception {\r
- public DataFormatException(String msg, Exception e ) {\r
- super( msg, e );\r
- }\r
-\r
- public DataFormatException(String msg ) {\r
- super( msg );\r
- }\r
-}\r
"RULE_MANAGEMENT_REPEAT_RULE_NAME": "Rule name repetition",\r
"RULE_MANAGEMENT_RULE_NAME_IS_EMPTY": "Rule name is empty",\r
"RULE_MANAGEMENT_DATA_FORMAT_ERROR": "Data format error",\r
- "RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR": "Parameter enabled can only be 0 (not enabled) and 1 (enabled)"\r
+ "RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR": "Parameter enabled can only be 0 (not enabled) and 1 (enabled)",\r
+ "RULE_MANAGEMENT_DB_ERROR": "db error"\r
}\r
"RULE_MANAGEMENT_REPEAT_RULE_NAME" : "规则名字重复",\r
"RULE_MANAGEMENT_RULE_NAME_IS_EMPTY" : "规则名字为空",\r
"RULE_MANAGEMENT_DATA_FORMAT_ERROR": "数据格式异常",\r
- "RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR" : "参数enabled只能为0(未启用)和1(启用)"\r
+ "RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR" : "参数enabled只能为0(未启用)和1(启用)",\r
+ "RULE_MANAGEMENT_DB_ERROR" : "数据库异常"\r
+\r
}\r
public static final String RULE_MANAGEMENT_REPEAT_RULE_NAME = "RULE_MANAGEMENT_REPEAT_RULE_NAME";\r
public static final String RULE_MANAGEMENT_DATA_FORMAT_ERROR = "RULE_MANAGEMENT_DATA_FORMAT_ERROR";\r
public static final String RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR = "RULE_MANAGEMENT_PARAMETER_ENABLED_ERROR";\r
+ public static final String RULE_MANAGEMENT_DB_ERROR = "RULE_MANAGEMENT_DB_ERROR";\r
\r
private Optional<I18n> optional = null;\r
\r