Merge "Refactor Subnet.isSubnetOf - reduce number of 'if' statements. Added unitests."
[controller.git] / opendaylight / md-sal / remoterpc-routingtable / implementation / src / main / java / org / opendaylight / controller / sal / connector / remoterpc / api / RoutingTableException.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.controller.sal.connector.remoterpc.api;
9
10 /**
11  * @author: syedbahm
12  */
13 public class RoutingTableException extends Exception {
14
15     /**
16      * Constructs a new exception with {@code null} as its detail message.
17      * The cause is not initialized, and may subsequently be initialized by a
18      * call to {@link #initCause}.
19      */
20     public RoutingTableException() {
21         super();
22     }
23
24     /**
25      * Constructs a new exception with the specified detail message.  The
26      * cause is not initialized, and may subsequently be initialized by
27      * a call to {@link #initCause}.
28      *
29      * @param message the detail message. The detail message is saved for
30      *                later retrieval by the {@link #getMessage()} method.
31      */
32     public RoutingTableException(String message) {
33         super(message);
34     }
35
36     /**
37      * Constructs a new exception with the specified detail message and
38      * cause.  <p>Note that the detail message associated with
39      * {@code cause} is <i>not</i> automatically incorporated in
40      * this exception's detail message.
41      *
42      * @param message the detail message (which is saved for later retrieval
43      *                by the {@link #getMessage()} method).
44      * @param cause   the cause (which is saved for later retrieval by the
45      *                {@link #getCause()} method).  (A <tt>null</tt> value is
46      *                permitted, and indicates that the cause is nonexistent or
47      *                unknown.)
48      */
49     public RoutingTableException(String message, Throwable cause) {
50         super(message, cause);
51     }
52 }