Merge "Move protocol framework from BGPCEP project"
[controller.git] / opendaylight / commons / protocol-framework / src / main / java / org / opendaylight / protocol / framework / DeserializerException.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.protocol.framework;
9
10 /**
11  * Used when something occurs during parsing bytes to java objects.
12  *
13  * @deprecated This exception no longer carries any special meaning. Users
14  * are advised to stop using it and define their own replacement.
15  */
16 @Deprecated
17 public class DeserializerException extends Exception {
18
19     private static final long serialVersionUID = -2247000673438452870L;
20
21     /**
22      * Creates a deserializer exception.
23      * @param err string
24      */
25     public DeserializerException(final String err) {
26         super(err);
27     }
28
29     /**
30      * Creates a deserializer exception.
31      * @param err string
32      * @param e underlying exception
33      */
34     public DeserializerException(final String err, final Throwable e) {
35         super(err, e);
36     }
37 }