BUG-7052: Move ModuleDependencySort to yang-model-util
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / util / YangValidationException.java
1 /*
2  * Copyright (c) 2013 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.parser.util;
9
10 /**
11  * Unchecked exception thrown if yang definition is not valid according to
12  * {YangModelBasicValidationListener}.
13  *
14  * @deprecated This exception is not used anywhere except {@link ModuleDependencySort} and is scheduled for removal
15  *             along with that class.
16  */
17 @Deprecated
18 public final class YangValidationException extends RuntimeException {
19
20     private static final long serialVersionUID = 7414330400390825381L;
21
22     public YangValidationException(final String message, final Throwable cause) {
23         super(message, cause);
24     }
25
26     public YangValidationException(final String message) {
27         super(message);
28     }
29
30 }