Integrate {Inference,Source}Exception with CommonStmtCtx
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / value / ValueStatementSupport.java
index b3d360634cb920bc7d0936f18a144fefb64fcab3..bd961d4a70396dd1c95da40c8061a219c29b5b98 100644 (file)
@@ -38,7 +38,7 @@ public final class ValueStatementSupport
         try {
             return Integer.valueOf(value);
         } catch (NumberFormatException e) {
-            throw new SourceException(ctx.sourceReference(), e,
+            throw new SourceException(ctx, e,
                 "%s is not valid value statement integer argument in a range of -2147483648..2147483647", value);
         }
     }