Proxy DOMRpcRouter to the mdsal implementation
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMRpcException.java
1 /*
2  * Copyright (c) 2015 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.md.sal.dom.api;
9
10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
11
12 /**
13  * Base class for failures that can occur during RPC invocation. This covers
14  * transport and protocol-level failures.
15  */
16 @SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_SUPERCLASS", justification = "Migration")
17 public abstract class DOMRpcException extends org.opendaylight.mdsal.dom.api.DOMRpcException {
18     private static final long serialVersionUID = 1L;
19
20     /**
21      * Construct an new instance with a message and an empty cause.
22      *
23      * @param message Exception message
24      */
25     protected DOMRpcException(final String message) {
26         super(message);
27     }
28
29     /**
30      * Construct an new instance with a message and a cause.
31      *
32      * @param message Exception message
33      * @param cause Chained cause
34      */
35     protected DOMRpcException(final String message, final Throwable cause) {
36         super(message, cause);
37     }
38 }