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 39300a28903dd174a3e13d7c2572f72a001356cf..14990e1ccbfd3ab1234745c8d9da38302e85b553 100644 (file)
@@ -19,4 +19,8 @@ public class PacketException extends Exception {
     public PacketException(final String message) {
         super(message);
     }
+
+    public PacketException(String message, Throwable cause) {
+        super(message, cause);
+    }
 }