Files
orionprotocol-sdk/src/utils/httpError.ts
Aleksandr Kraiz c12a4e8e7a Linter standard (#49)
* Impl

* Fix

* Fix

* Bump

* Bump

* Fix

* Bump
2023-02-14 00:34:37 +04:00

18 lines
395 B
TypeScript

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;
}
}