@zowe/cics-for-zowe-sdk
Version:
36 lines • 1.21 kB
JavaScript
;
/**
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CicsCmciRestError = void 0;
const imperative_1 = require("@zowe/imperative");
class CicsCmciRestError extends imperative_1.ImperativeError {
resultSummary;
RESPONSE_1;
RESPONSE_2;
RESPONSE_1_ALT;
RESPONSE_2_ALT;
constructor(msg, resultSummary) {
super({
msg,
});
this.resultSummary = resultSummary;
this.parseResultSummary();
}
parseResultSummary() {
this.RESPONSE_1 = parseInt(this.resultSummary.api_response1);
this.RESPONSE_2 = parseInt(this.resultSummary.api_response2);
this.RESPONSE_1_ALT = this.resultSummary.api_response1_alt;
this.RESPONSE_2_ALT = this.resultSummary.api_response2_alt;
}
}
exports.CicsCmciRestError = CicsCmciRestError;
//# sourceMappingURL=CicsCmciRestError.js.map