UNPKG

@signumjs/http

Version:
28 lines 612 B
"use strict"; /** * Copyright (c) 2019 Burst Apps Team */ Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpError = void 0; /** * HttpError class * * Thrown on HTTP errors * @module http */ class HttpError extends Error { requestUrl; status; message; data; timestamp = Date.now(); constructor(requestUrl, status, message, data) { super(message); this.requestUrl = requestUrl; this.status = status; this.message = message; this.data = data; } } exports.HttpError = HttpError; //# sourceMappingURL=httpError.js.map