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~55 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=7497e3ab19b7f8c03dafa556e64c0db118e31403;ds=sidebyside Allow PacketException to store the cause This avoids callers’ losing the original exception. Change-Id: I99f11dd6866670229f8e3d2aa6556f540369de19 Signed-off-by: Stephen Kitt --- diff --git a/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/PacketException.java b/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/PacketException.java index 39300a2890..14990e1ccb 100644 --- a/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/PacketException.java +++ b/opendaylight/commons/liblldp/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); + } }