14 lines
400 B
JavaScript
14 lines
400 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ApiError = void 0;
|
|
class ApiError extends Error {
|
|
constructor(response, message) {
|
|
super(message);
|
|
this.url = response.url;
|
|
this.status = response.status;
|
|
this.statusText = response.statusText;
|
|
this.body = response.body;
|
|
}
|
|
}
|
|
exports.ApiError = ApiError;
|