Add XMLNamespace
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / source / PrefixToModule.java
index b425a38230f2e607c268314abdfeaeef137e1273..7be6315e3c9338ae00bc4c408389aa476f64d863 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.parser.spi.source;
 
-import java.net.URISyntaxException;
 import org.eclipse.jdt.annotation.NonNull;
 import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.yang.common.QNameModule;
@@ -35,7 +34,7 @@ public interface PrefixToModule extends ParserNamespace<String, QNameModule> {
      *
      * @param namespace XML Namespace
      * @return QNameModule associated with supplied namespace, or null if prefix is not defined.
-     * @throws URISyntaxException if the input string is not valid URI
+     * @throws IllegalArgumentException if the input string is not valid URI
      */
-    @Nullable QNameModule getByNamespace(String namespace) throws URISyntaxException;
+    @Nullable QNameModule getByNamespace(String namespace);
 }