From 7497e3ab19b7f8c03dafa556e64c0db118e31403 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Wed, 22 Nov 2017 11:39:30 +0100 Subject: [PATCH] Allow PacketException to store the cause MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This avoids callers’ losing the original exception. Change-Id: I99f11dd6866670229f8e3d2aa6556f540369de19 Signed-off-by: Stephen Kitt --- .../org/opendaylight/controller/liblldp/PacketException.java | 4 ++++ 1 file changed, 4 insertions(+) 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); + } } -- 2.36.6