Merge "Startup archetype: remove 'Impl' from config subsystem Module name."
[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 /**
11  * Base class for failures that can occur during RPC invocation. This covers
12  * transport and protocol-level failures.
13  */
14 public abstract class DOMRpcException extends Exception {
15     private static final long serialVersionUID = 1L;
16
17     /**
18      * Construct an new instance with a message and an empty cause.
19      *
20      * @param message Exception message
21      */
22     protected DOMRpcException(final String message) {
23         super(message);
24     }
25
26     /**
27      * Construct an new instance with a message and a cause.
28      *
29      * @param message Exception message
30      * @param cause Chained cause
31      */
32     protected DOMRpcException(final String message, final Throwable cause) {
33         super(message, cause);
34     }
35 }