@xray-app/xray-automation
Version:
Library for uploading test results to Xray Test Management
18 lines (17 loc) • 570 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.XrayErrorResponse = void 0;
class XrayErrorResponse {
constructor(response) {
this._response = response;
if (response !== undefined && response.status !== undefined)
this.statusCode = response.status;
if (response !== undefined && response.data !== undefined)
this.body = response.data;
}
toString() {
return this._response;
}
}
exports.XrayErrorResponse = XrayErrorResponse;
exports.default = XrayErrorResponse;