2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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
9 package org.opendaylight.bgpmanager.thrift.exceptions;
11 public class BgpRouterException extends Exception {
12 public final static int BGP_ERR_INITED = 101;
13 public final static int BGP_ERR_NOT_INITED = 102;
15 // the following consts are server-dictated. do not modify
16 public final static int BGP_ERR_ACTIVE = 10;
17 public final static int BGP_ERR_INACTIVE = 11;
18 public final static int BGP_ERR_COMM = 12;
19 public final static int BGP_ERR_LOCAL = 13;
20 public final static int BGP_ERR_IN_ITER = 14;
21 public final static int BGP_ERR_NOT_ITER = 15;
22 public final static int BGP_ERR_UNKNOWN = 100;
25 public BgpRouterException(int cause) {
29 public int getErrorCode() {