UNPKG

windmill-utils-internal

Version:

Internal utility functions for Windmill

21 lines (20 loc) 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiError = void 0; class ApiError extends Error { url; status; statusText; body; request; constructor(request, response, message) { super(message); this.name = 'ApiError'; this.url = response.url; this.status = response.status; this.statusText = response.statusText; this.body = response.body; this.request = request; } } exports.ApiError = ApiError;