Committed by
Gerrit Code Review
Add TranslatorException, YangJavaModelUtils
Change-Id: I8c8d8d36a69ff24613218892532fd3bfada1fcdf
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -300,7 +300,7 @@ public final class YangJavaModelUtils { | ... | @@ -300,7 +300,7 @@ public final class YangJavaModelUtils { |
300 | YangPluginConfig yangPluginConfig) | 300 | YangPluginConfig yangPluginConfig) |
301 | throws IOException { | 301 | throws IOException { |
302 | if (!(javaCodeGeneratorInfo instanceof YangNode)) { | 302 | if (!(javaCodeGeneratorInfo instanceof YangNode)) { |
303 | - // TODO:throw exception | 303 | + throw new TranslatorException("invalid node for translation"); |
304 | } | 304 | } |
305 | updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig); | 305 | updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig); |
306 | generateTempFiles(javaCodeGeneratorInfo, yangPluginConfig); | 306 | generateTempFiles(javaCodeGeneratorInfo, yangPluginConfig); |
... | @@ -318,7 +318,7 @@ public final class YangJavaModelUtils { | ... | @@ -318,7 +318,7 @@ public final class YangJavaModelUtils { |
318 | YangPluginConfig yangPluginConfig, String rootPkg) | 318 | YangPluginConfig yangPluginConfig, String rootPkg) |
319 | throws IOException { | 319 | throws IOException { |
320 | if (!(javaCodeGeneratorInfo instanceof YangNode)) { | 320 | if (!(javaCodeGeneratorInfo instanceof YangNode)) { |
321 | - // TODO:throw exception | 321 | + throw new TranslatorException("invalid node for translation"); |
322 | } | 322 | } |
323 | updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig, rootPkg); | 323 | updatePackageInfo(javaCodeGeneratorInfo, yangPluginConfig, rootPkg); |
324 | 324 | ... | ... |
-
Please register or login to post a comment