BUG-730 : added tests to bgp-parser-api
[bgpcep.git] / bgp / parser-api / src / main / java / org / opendaylight / protocol / bgp / parser / BGPParsingException.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.bgp.parser;
9
10 /**
11  *
12  * Used when something occurs during the parsing to get Update Message.
13  *
14  */
15 public class BGPParsingException extends Exception {
16     private static final long serialVersionUID = 1L;
17
18     /**
19      *
20      * @param err error message string.
21      */
22     public BGPParsingException(final String err) {
23         super(err);
24     }
25
26     /**
27      *
28      * @param message exception message
29      * @param cause primary exception
30      */
31     public BGPParsingException(final String message, final Exception cause) {
32         super(message, cause);
33     }
34 }