BUG-3876: Add XPath interfaces
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / xpath / LazyXPathExpressionException.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.yangtools.yang.data.api.schema.xpath;
9
10 import com.google.common.annotations.Beta;
11 import javax.xml.xpath.XPathExpressionException;
12
13 /**
14  * The runtime counterpart of {@link XPathExpressionException}. Can occur only when the user is accessing any state
15  * created from the user's invocation to the {@link LazyXPathExpression} API.
16  *
17  * @deprecated PREVIEW API. DO NOT IMPLEMENT YET AS THIS NEEDS TO BE VALIDATED FOR USE IN CLIENT APPLICATIONS.
18  *             APPLICATIONS WILLING TO USE THIS API PLEASE CONTACT
19  *             <a href="mailto:yangtools-dev@lists.opendaylight.org">yangtools-dev</a>.
20  */
21 @Beta
22 @Deprecated
23 public class LazyXPathExpressionException extends RuntimeException {
24     private static final long serialVersionUID = 1L;
25
26     public LazyXPathExpressionException(final String message) {
27         super(message);
28     }
29
30     public LazyXPathExpressionException(final String message, final Throwable cause) {
31         super(message, cause);
32     }
33 }