Add cause and errorType to RpcError 40/1140/2
authorMichal Rehak <mirehak@cisco.com>
Tue, 10 Sep 2013 03:28:07 +0000 (05:28 +0200)
committerMichal Rehak <mirehak@cisco.com>
Wed, 11 Sep 2013 04:18:24 +0000 (06:18 +0200)
Signed-off-by: Michal Rehak <mirehak@cisco.com>
Change-Id: If2289524870ae9ca9f12a4b0ecf3bb3c5260ac38

yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/RpcError.java

index 775fa8eb76e5769a13060bc9ed47f45db0c260a5..3aad8a77a69454d0d64b86edf219789d98a5c7c1 100644 (file)
@@ -1,28 +1,32 @@
-/*
- * Copyright (c) 2013 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,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.yang.common;
-
-public interface RpcError {
-    ErrorSeverity getSeverity();
-
-    String getTag();
-
-    String getApplicationTag();
-
-    String getMessage();
-
-    String getInfo();
-
-    public enum ErrorSeverity {
-        ERROR, WARNING,
-    }
-
-    public enum ErrorType {
-        TRANSPORT, RPC, PROTOCOL, APPLICATION
-    }
-}
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.yangtools.yang.common;\r
+\r
+public interface RpcError {\r
+    ErrorSeverity getSeverity();\r
+\r
+    String getTag();\r
+\r
+    String getApplicationTag();\r
+\r
+    String getMessage();\r
+\r
+    String getInfo();\r
+    \r
+    Throwable getCause();\r
+    \r
+    ErrorType getErrorType();\r
+\r
+    public enum ErrorSeverity {\r
+        ERROR, WARNING,\r
+    }\r
+\r
+    public enum ErrorType {\r
+        TRANSPORT, RPC, PROTOCOL, APPLICATION\r
+    }\r
+}\r