From: Stephen Kitt Date: Wed, 22 Nov 2017 10:39:30 +0000 (+0100) Subject: Allow PacketException to store the cause X-Git-Tag: release/oxygen~40^2~3 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=0ad9d95b3d1c18165192c6b12d151531c87ee867;p=openflowplugin.git Allow PacketException to store the cause This avoids callers’ losing the original exception. Change-Id: I99f11dd6866670229f8e3d2aa6556f540369de19 Signed-off-by: Stephen Kitt --- diff --git a/src/main/java/org/opendaylight/controller/liblldp/PacketException.java b/src/main/java/org/opendaylight/controller/liblldp/PacketException.java index 39300a2890..14990e1ccb 100644 --- a/src/main/java/org/opendaylight/controller/liblldp/PacketException.java +++ b/src/main/java/org/opendaylight/controller/liblldp/PacketException.java @@ -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); + } }