Add forwarding transactions to binding v1
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMOperationException.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.mdsal.dom.api;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12
13 /**
14  * Base class for failures that can occur during operation invocation. This covers transport and protocol-level
15  * failures, not implementation-reported errors, which are part of {@link DOMOperationResult}.
16  *
17  * @author Robert Varga
18  */
19 @Beta
20 @NonNullByDefault
21 public abstract class DOMOperationException extends Exception {
22     private static final long serialVersionUID = 1L;
23
24     /**
25      * Construct an new instance with a message and an empty cause.
26      *
27      * @param message Exception message
28      */
29     protected DOMOperationException(final String message) {
30         super(message);
31     }
32
33     /**
34      * Construct an new instance with a message and a cause.
35      *
36      * @param message Exception message
37      * @param cause Chained cause
38      */
39     protected DOMOperationException(final String message, final Throwable cause) {
40         super(message, cause);
41     }
42 }