ee91b116716bf9bac0d68598429a27ccd0192fa4
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / thrift / exceptions / BgpRouterException.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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
9 package org.opendaylight.bgpmanager.thrift.exceptions;
10
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;
14
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;
23
24
25     public BgpRouterException(int cause) {
26         errcode = cause;
27     }
28
29     public int getErrorCode() {
30         return errcode;
31     }
32
33     private int errcode;
34 }