From 156a4017380494529d0efb3802caecb632cc681b Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 7 Feb 2014 23:19:04 +0100 Subject: [PATCH] Remove use of deprecated Exceptions DocumentedException and DeserializerException are deprecated and were only used by deprecated interfaces which we no longer use. Stop using them. Change-Id: I899beb6d08be2c4a0b17ecbe6e1ca2be334e12a9 Signed-off-by: Robert Varga --- .../controller/netconf/api/NetconfDeserializerException.java | 4 +--- .../controller/netconf/api/NetconfDocumentedException.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDeserializerException.java b/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDeserializerException.java index f42db6938d..6e27b48978 100644 --- a/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDeserializerException.java +++ b/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDeserializerException.java @@ -8,14 +8,12 @@ package org.opendaylight.controller.netconf.api; -import org.opendaylight.protocol.framework.DeserializerException; - /** * This exception is thrown by * {@link NetconfSessionListener#onMessage(NetconfMessage)} to indicate fatal * communication problem after which the session should be closed. */ -public class NetconfDeserializerException extends DeserializerException { +public class NetconfDeserializerException extends Exception { private static final long serialVersionUID = 1L; public NetconfDeserializerException(final String message) { diff --git a/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDocumentedException.java b/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDocumentedException.java index 1107572df1..5a85e94257 100644 --- a/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDocumentedException.java +++ b/opendaylight/netconf/netconf-api/src/main/java/org/opendaylight/controller/netconf/api/NetconfDocumentedException.java @@ -11,13 +11,11 @@ package org.opendaylight.controller.netconf.api; import java.util.Collections; import java.util.Map; -import org.opendaylight.protocol.framework.DocumentedException; - /** * Checked exception to communicate an error that needs to be sent to the * netconf client. */ -public class NetconfDocumentedException extends DocumentedException { +public class NetconfDocumentedException extends Exception { private static final long serialVersionUID = 1L; -- 2.36.6