@xray-app/xray-automation
Version:
Library for uploading test results to Xray Test Management
14 lines (13 loc) • 414 B
JavaScript
export 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;
}
}
export default XrayErrorResponse;