Integrate {Inference,Source}Exception with CommonStmtCtx
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / base / BaseStatementSupport.java
index 1a351e4dd9f30a01093d805d0d877608ab991dc2..b590e7ba5abf2e6f5384a58c9e681759b449c2d6 100644 (file)
@@ -67,8 +67,7 @@ public final class BaseStatementSupport extends BaseQNameStatementSupport<BaseSt
 
                 @Override
                 public void prerequisiteFailed(final Collection<? extends Prerequisite<?>> failed) {
-                    throw new InferenceException(baseStmtCtx.sourceReference(),
-                        "Unable to resolve identity %s and base identity %s",
+                    throw new InferenceException(baseStmtCtx, "Unable to resolve identity %s and base identity %s",
                         baseParentCtx.argument(), baseStmtCtx.argument());
                 }
             });