sangyun-han
Committed by Gerrit Code Review

Add TranslatorException, YangJavaModelUtils

Change-Id: I8c8d8d36a69ff24613218892532fd3bfada1fcdf
......@@ -300,7 +300,7 @@ public final class YangJavaModelUtils {
YangPluginConfig yangPluginConfig)
throws IOException {
if (!(javaCodeGeneratorInfo instanceof YangNode)) {
// TODO:throw exception
throw new TranslatorException("invalid node for translation");
}
updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig);
generateTempFiles(javaCodeGeneratorInfo, yangPluginConfig);
......@@ -318,7 +318,7 @@ public final class YangJavaModelUtils {
YangPluginConfig yangPluginConfig, String rootPkg)
throws IOException {
if (!(javaCodeGeneratorInfo instanceof YangNode)) {
// TODO:throw exception
throw new TranslatorException("invalid node for translation");
}
updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig, rootPkg);
......