Fix odl-config-persister
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMDataTreeInaccessibleException.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 com.google.common.base.Preconditions;
11
12 /**
13  * Failure reported when a data tree is no longer accessible.
14  *
15  * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMDataTreeInaccessibleException} instead.
16  */
17 @Deprecated
18 public class DOMDataTreeInaccessibleException extends DOMDataTreeListeningException {
19     private static final long serialVersionUID = 1L;
20     private final DOMDataTreeIdentifier treeIdentifier;
21
22     public DOMDataTreeInaccessibleException(final DOMDataTreeIdentifier treeIdentifier, final String message) {
23         super(message);
24         this.treeIdentifier = Preconditions.checkNotNull(treeIdentifier);
25     }
26
27     public DOMDataTreeInaccessibleException(final DOMDataTreeIdentifier treeIdentifier, final String message,
28             final Throwable cause) {
29         super(message);
30         this.treeIdentifier = Preconditions.checkNotNull(treeIdentifier);
31     }
32
33     public final DOMDataTreeIdentifier getTreeIdentifier() {
34         return treeIdentifier;
35     }
36 }