summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 15:54:45 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 15:54:45 +0530
commitc8af8490dd408ae6af93db7cb66955e43cb09904 (patch)
tree0795a688a827df22f2963db340c8f363db5b521f /framework
parent65fcdf360a21e0b6fff35d6ccfa5afbe65902466 (diff)
Fix yaml print with right set of exception
Issue-ID: CLI-100 Change-Id: I9ff493c0f83f9b63d6e2f647197f32b76d475ba4 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
index 1f51ff38..019ce5c6 100644
--- a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
+++ b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
@@ -263,9 +263,7 @@ public class OnapCommandPrint {
public String printYaml() throws OnapCommandOutputPrintingFailed {
try {
return new YAMLMapper().writeValueAsString(new ObjectMapper().readTree(this.printJson()));
- } catch (JsonProcessingException e) {
- throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
- } catch (IOException e) {
+ } catch (IOException e) {
throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
}
}