mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 06:32:37 +03:00
18 lines
395 B
TypeScript
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;
|
|
}
|
|
}
|