Integrate {Inference,Source}Exception with CommonStmtCtx
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / input / AbstractInputStatementSupport.java
index 1465d662c006c15aec3c3b7197f697dea793ba17..ff1342a852d17a8a980930d1da279b15b4d1798a 100644 (file)
@@ -69,7 +69,7 @@ abstract class AbstractInputStatementSupport
         try {
             return new UndeclaredInputEffectiveStatement(flags, substatements, stmt.wrapSchemaPath());
         } catch (SubstatementIndexingException e) {
-            throw new SourceException(e.getMessage(), stmt.sourceReference(), e);
+            throw new SourceException(e.getMessage(), stmt, e);
         }
     }
 }