Initial commit

This commit is contained in:
Aleksandr Kraiz
2022-04-20 23:41:04 +04:00
commit 106b702d21
118 changed files with 25394 additions and 0 deletions

17
src/utils/httpError.ts Normal file
View File

@@ -0,0 +1,17 @@
export default class HttpError extends Error {
public code: number;
public errorMessage: string |null;
public statusText: string;
public type: string;
constructor(code:number, message:string|null, type: string, statusText:string) {
super(message || '');
this.errorMessage = message;
this.type = type;
this.statusText = statusText;
this.code = code;
}
}