2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.protocol.bgp.parser;
13 * Used when something occurs during the parsing to get Update Message.
16 public class BGPParsingException extends Exception {
17 private static final long serialVersionUID = 1L;
21 * @param err error message string.
23 public BGPParsingException(final String err) {
29 * @param message exception message
30 * @param cause primary exception
32 public BGPParsingException(final String message, final Exception cause){
33 super(message, cause);
38 * @return error message.
40 * @deprecated Use getMessage() instead.
43 public String getError() {
44 return this.getMessage();