Remove yang-test
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / exception / ConfigHandlingException.java
index 3874d70c3794c5672c989daed1002564506afdec..50db588f6f662d0c9761f9f79ceb38ee542d9f7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -15,12 +15,22 @@ public class ConfigHandlingException extends DocumentedException {
     private static final long serialVersionUID = 1L;
 
     public ConfigHandlingException(final String message, final ErrorType errorType, final ErrorTag errorTag,
-        final ErrorSeverity errorSeverity) {
-        this(message, errorType, errorTag, errorSeverity, Collections.<String, String>emptyMap());
+            final ErrorSeverity errorSeverity) {
+        this(message, null, errorType, errorTag, errorSeverity, Collections.emptyMap());
+    }
+
+    public ConfigHandlingException(final String message, final Exception cause, final ErrorType errorType,
+            final ErrorTag errorTag, final ErrorSeverity errorSeverity) {
+        this(message, cause, errorType, errorTag, errorSeverity, Collections.emptyMap());
     }
 
     public ConfigHandlingException(final String message, final ErrorType errorType, final ErrorTag errorTag,
-        final ErrorSeverity errorSeverity, final Map<String, String> errorInfo){
-        super(message,errorType,errorTag,errorSeverity,errorInfo);
+            final ErrorSeverity errorSeverity, final Map<String, String> errorInfo) {
+        this(message, null, errorType, errorTag, errorSeverity, errorInfo);
+    }
+
+    public ConfigHandlingException(final String message, final Exception cause, final ErrorType errorType,
+            final ErrorTag errorTag, final ErrorSeverity errorSeverity, final Map<String, String> errorInfo) {
+        super(message, cause, errorType, errorTag, errorSeverity, errorInfo);
     }
 }