Integrate {Inference,Source}Exception with CommonStmtCtx
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / type / UnionSpecificationSupport.java
index 2fe4f3c281a6258fa5a3c1478a7721023737e502..b9ea4b28fd79afe9abb524b6b4e43c1e7e37b405 100644 (file)
@@ -81,6 +81,6 @@ final class UnionSpecificationSupport
          *     When the type is "union", the "type" statement (Section 7.4) MUST be
          *     present.
          */
-        return new SourceException("At least one type statement has to be present", stmt.sourceReference());
+        return new SourceException("At least one type statement has to be present", stmt);
     }
 }