Use exception chaining where possible
[bgpcep.git] / framework / src / main / java / org / opendaylight / protocol / framework / DocumentedException.java
index 640fefa944a0517f3f6839dc830e25b5d681976a..041e9a74c9dd3b56cb78458541eef48a0868dbb8 100644 (file)
@@ -26,9 +26,11 @@ public class DocumentedException extends Exception  {
        /**
         * Creates a documented exception
         * @param err string
-        * @param e underlying exception
+        * @param cause the cause (which is saved for later retrieval by the
+        * Throwable.getCause() method). (A null value is permitted, and indicates
+        * that the cause is nonexistent or unknown.)
         */
-       public DocumentedException(final String err, final Exception e) {
-               super(err, e);
+       public DocumentedException(final String err, final Exception cause) {
+               super(err, cause);
        }
 }