UNPKG

js-file-downloader

Version:
13 lines (11 loc) 341 B
export class DownloadException extends Error { constructor (message, request) { super(`Downloader error: ${message}`); this.request = request; this.name = 'DownloadException'; } }; /** * @deprecated use DownloadException instead, it will be removed in next releases! */ export const downloadException = DownloadException;