import AjaxResponse from "./AjaxResponse"; import { Props } from "../../types"; export default class AjaxError extends Error implements AjaxResponse { status: number; statusText: string; xhr: XMLHttpRequest; data: any; headers: Props; allowedMethods: string; allowedOrigin: string; responseType: string; responseURL: string; cause: Error; readonly isAjaxError = true; constructor(status: number, statusText: string, xhr: XMLHttpRequest, data?: any, headers?: Props, allowedMethods?: string, allowedOrigin?: string, responseType?: string, responseURL?: string, error?: Error); }