Allow PacketException to store the cause 37/65837/2
authorStephen Kitt <skitt@redhat.com>
Wed, 22 Nov 2017 10:39:30 +0000 (11:39 +0100)
committerTom Pantelis <tompantelis@gmail.com>
Thu, 23 Nov 2017 01:08:22 +0000 (01:08 +0000)
This avoids callers’ losing the original exception.

Change-Id: I99f11dd6866670229f8e3d2aa6556f540369de19
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/PacketException.java

index 39300a2..14990e1 100644 (file)
@@ -19,4 +19,8 @@ public class PacketException extends Exception {
     public PacketException(final String message) {
         super(message);
     }
     public PacketException(final String message) {
         super(message);
     }
+
+    public PacketException(String message, Throwable cause) {
+        super(message, cause);
+    }
 }
 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.