diff options
Diffstat (limited to 'framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java b/framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java index 20060531..c32bda88 100644 --- a/framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java +++ b/framework/src/main/java/org/onap/cli/fw/error/OnapCommandResultInitialzationFailed.java @@ -24,11 +24,15 @@ public class OnapCommandResultInitialzationFailed extends OnapCommandException { private static final long serialVersionUID = 8580121615330415123L; + private static final String ERROR_CODE = "0x0022"; + + private static final String ERROR_MSG = "Failed to parse the result format of command "; + public OnapCommandResultInitialzationFailed(String cmd, String error) { - super("0x0022", "Command " + cmd + " result format is failed, " + error); + super(ERROR_CODE, ERROR_MSG + cmd + ", " + error); } public OnapCommandResultInitialzationFailed(String cmd, Throwable throwable) { - this(cmd, throwable.getMessage()); + super(ERROR_CODE, ERROR_MSG + cmd , throwable); } } |