Buckets:
| import { getXHRResponse } from './getXHRResponse'; | |
| import { createErrorClass } from '../util/createErrorClass'; | |
| export const AjaxError = createErrorClass((_super) => function AjaxErrorImpl(message, xhr, request) { | |
| this.message = message; | |
| this.name = 'AjaxError'; | |
| this.xhr = xhr; | |
| this.request = request; | |
| this.status = xhr.status; | |
| this.responseType = xhr.responseType; | |
| let response; | |
| try { | |
| response = getXHRResponse(xhr); | |
| } | |
| catch (err) { | |
| response = xhr.responseText; | |
| } | |
| this.response = response; | |
| }); | |
| export const AjaxTimeoutError = (() => { | |
| function AjaxTimeoutErrorImpl(xhr, request) { | |
| AjaxError.call(this, 'ajax timeout', xhr, request); | |
| this.name = 'AjaxTimeoutError'; | |
| return this; | |
| } | |
| AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype); | |
| return AjaxTimeoutErrorImpl; | |
| })(); | |
| //# sourceMappingURL=errors.js.map |
Xet Storage Details
- Size:
- 924 Bytes
- Xet hash:
- 8255537a2aea507cfb613e6e77dea344a1c7746dbbbfa9c84c48e82894a36445
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.