UNPKG

windmill-utils-internal

Version:

Internal utility functions for Windmill

17 lines (16 loc) 394 B
export 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; } }