js-file-downloader
Version:
Small lib for a cool download experience
13 lines (11 loc) • 341 B
JavaScript
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;