summaryrefslogtreecommitdiffstats
path: root/holmes-actions
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-02-18 04:10:26 +0000
committerGerrit Code Review <gerrit@open-o.org>2017-02-18 04:10:26 +0000
commite1fced01d4e9caea31794dbfa0706ca5e9e6a28f (patch)
treec5eb5ff6121fba7921607df033d6aa237135a7b6 /holmes-actions
parent9b4711c706dde6caa4689e9317c906361627fc8b (diff)
parent8ea73927ac9f0c8111853f6dffc67db0cf6f0613 (diff)
Merge "Add new exception class"
Diffstat (limited to 'holmes-actions')
-rw-r--r--holmes-actions/src/main/java/org/openo/holmes/common/exception/CorrelationException.java (renamed from holmes-actions/src/main/java/org/openo/holmes/common/exception/CallException.java)7
-rw-r--r--holmes-actions/src/main/java/org/openo/holmes/common/exception/DataFormatException.java26
2 files changed, 4 insertions, 29 deletions
diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/exception/CallException.java b/holmes-actions/src/main/java/org/openo/holmes/common/exception/CorrelationException.java
index fe32b26..4454cbb 100644
--- a/holmes-actions/src/main/java/org/openo/holmes/common/exception/CallException.java
+++ b/holmes-actions/src/main/java/org/openo/holmes/common/exception/CorrelationException.java
@@ -15,12 +15,13 @@
*/
package org.openo.holmes.common.exception;
-public class CallException extends Exception {
- public CallException(String msg, Exception e) {
+public class CorrelationException extends Exception {
+
+ public CorrelationException(String msg, Exception e) {
super(msg, e);
}
- public CallException(String msg) {
+ public CorrelationException(String msg) {
super(msg);
}
} \ No newline at end of file
diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/exception/DataFormatException.java b/holmes-actions/src/main/java/org/openo/holmes/common/exception/DataFormatException.java
deleted file mode 100644
index 7fcc3b2..0000000
--- a/holmes-actions/src/main/java/org/openo/holmes/common/exception/DataFormatException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Copyright 2017 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.openo.holmes.common.exception;
-
-public class DataFormatException extends Exception {
- public DataFormatException(String msg, Exception e ) {
- super( msg, e );
- }
-
- public DataFormatException(String msg ) {
- super( msg );
- }
-}