Remove reliance on deprecated classes in BGP components
[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  *
13  * Used when something occurs during the parsing to get Update Message.
14  *
15  */
16 public class BGPParsingException extends Exception {
17         private static final long serialVersionUID = 1L;
18
19         /**
20          *
21          * @param err error message string.
22          */
23         public BGPParsingException(final String err) {
24                 super(err);
25         }
26
27         /**
28          *
29          * @param message exception message
30          * @param cause primary exception
31          */
32         public BGPParsingException(final String message, final Exception cause){
33                 super(message, cause);
34         }
35
36         /**
37          *
38          * @return error message.
39          * 
40          * @deprecated Use getMessage() instead.
41          */
42         @Deprecated
43         public String getError() {
44                 return this.getMessage();
45         }
46 }