Merge "Updating operational datastore"
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / thrift / exceptions / BgpRouterException.java
1 package org.opendaylight.bgpmanager.thrift.exceptions;
2
3 public class BgpRouterException extends Exception {
4     public final static int BGP_ERR_INITED = 101;
5     public final static int BGP_ERR_NOT_INITED = 102;
6
7     // the following consts are server-dictated. do not modify
8     public final static int BGP_ERR_ACTIVE = 10;
9     public final static int BGP_ERR_INACTIVE = 11;
10     public final static int BGP_ERR_COMM = 12;
11     public final static int BGP_ERR_LOCAL = 13;
12     public final static int BGP_ERR_IN_ITER =  14;
13     public final static int BGP_ERR_NOT_ITER = 15;
14     public final static int BGP_ERR_UNKNOWN = 100;
15
16
17     public BgpRouterException(int cause) {
18         errcode = cause;
19     }
20
21     public int getErrorCode() {
22         return errcode;
23     }
24     
25     private int errcode;
26 }