aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/ajax/errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/ajax/errors.js')
-rw-r--r--node_modules/rxjs/dist/esm/internal/ajax/errors.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/ajax/errors.js b/node_modules/rxjs/dist/esm/internal/ajax/errors.js
new file mode 100644
index 0000000..6b5c43d
--- /dev/null
+++ b/node_modules/rxjs/dist/esm/internal/ajax/errors.js
@@ -0,0 +1,28 @@
+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 \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage