Deprecate old MD-SAL APIs for removal
[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  * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcException} instead.
17  */
18 @Deprecated(forRemoval = true)
19 @SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_SUPERCLASS", justification = "Migration")
20 public abstract class DOMRpcException extends org.opendaylight.mdsal.dom.api.DOMRpcException {
21     private static final long serialVersionUID = 1L;
22
23     /**
24      * Construct an new instance with a message and an empty cause.
25      *
26      * @param message Exception message
27      */
28     protected DOMRpcException(final String message) {
29         super(message);
30     }
31
32     /**
33      * Construct an new instance with a message and a cause.
34      *
35      * @param message Exception message
36      * @param cause Chained cause
37      */
38     protected DOMRpcException(final String message, final Throwable cause) {
39         super(message, cause);
40     }
41 }