1
0
mirror of https://github.com/flarum/core.git synced 2025-05-05 06:57:55 +02:00

convert: common/utils/RequestError

This commit is contained in:
David Sevilla Martin 2020-06-23 10:00:47 -04:00 committed by Franz Liedke
parent 521cefbc2d
commit 4f34e326ef
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -1,5 +1,14 @@
export default class RequestError {
constructor(status, responseText, options, xhr) {
status: string;
options: object;
xhr: XMLHttpRequest;
responseText: string | null;
response: object | null;
alert: any;
constructor(status: string, responseText: string | null, options: object, xhr: XMLHttpRequest) {
this.status = status;
this.responseText = responseText;
this.options = options;