BUG-7052: deprecate YangParseException 51/58751/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 12 Jun 2017 16:15:40 +0000 (18:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 12 Jun 2017 23:29:48 +0000 (01:29 +0200)
This exception is no longer used and should be removed to reduce
confusion.

Change-Id: Ie5c298c8e8a5aa4bdd11ecf5768d14f5584f1344
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/util/YangParseException.java

index 400af8bef6cee5744c2a87ad83aee951155ac59d..aac1bfbc5046a3b72f773136392eb49aa61e275b 100644 (file)
@@ -7,7 +7,11 @@
  */
 package org.opendaylight.yangtools.yang.parser.util;
 
+/**
+ * @deprecated This exception is not produced anywhere and is scheduled for removal.
+ */
 // TODO: switch to checked exception, add YangSemanticException
+@Deprecated
 public class YangParseException extends RuntimeException {
     private static final long serialVersionUID = 1239548963471793178L;
 
@@ -26,6 +30,4 @@ public class YangParseException extends RuntimeException {
     public YangParseException(final String moduleName, final int line, final String errorMsg, final Exception exception) {
         super("Error in module '" + moduleName + "' at line " + line + ": " + errorMsg, exception);
     }
-
-
 }