Move protocol framework from BGPCEP project
[controller.git] / opendaylight / commons / protocol-framework / src / main / java / org / opendaylight / protocol / framework / DeserializerException.java
diff --git a/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/DeserializerException.java b/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/DeserializerException.java
new file mode 100644 (file)
index 0000000..608e949
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.protocol.framework;
+
+/**
+ * Used when something occurs during parsing bytes to java objects.
+ *
+ * @deprecated This exception no longer carries any special meaning. Users
+ * are advised to stop using it and define their own replacement.
+ */
+@Deprecated
+public class DeserializerException extends Exception {
+
+    private static final long serialVersionUID = -2247000673438452870L;
+
+    /**
+     * Creates a deserializer exception.
+     * @param err string
+     */
+    public DeserializerException(final String err) {
+        super(err);
+    }
+
+    /**
+     * Creates a deserializer exception.
+     * @param err string
+     * @param e underlying exception
+     */
+    public DeserializerException(final String err, final Throwable e) {
+        super(err, e);
+    }
+}