diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/ajax/errors.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm5/internal/ajax/errors.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/ajax/errors.js b/node_modules/rxjs/dist/esm5/internal/ajax/errors.js deleted file mode 100644 index ce4dd09..0000000 --- a/node_modules/rxjs/dist/esm5/internal/ajax/errors.js +++ /dev/null @@ -1,30 +0,0 @@ -import { getXHRResponse } from './getXHRResponse'; -import { createErrorClass } from '../util/createErrorClass'; -export var AjaxError = createErrorClass(function (_super) { - return 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; - var response; - try { - response = getXHRResponse(xhr); - } - catch (err) { - response = xhr.responseText; - } - this.response = response; - }; -}); -export var AjaxTimeoutError = (function () { - 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
\ No newline at end of file |
