mirror of
https://github.com/flarum/core.git
synced 2025-07-08 18:43:14 +02:00
convert: common/utils/RequestError
This commit is contained in:
committed by
Franz Liedke
parent
521cefbc2d
commit
4f34e326ef
@ -1,5 +1,14 @@
|
|||||||
export default class RequestError {
|
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.status = status;
|
||||||
this.responseText = responseText;
|
this.responseText = responseText;
|
||||||
this.options = options;
|
this.options = options;
|
Reference in New Issue
Block a user