genshin-manager
Version:
<div align="center"> <p> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https://img.shields.io/npm/v/genshin-manager.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https:
21 lines (20 loc) • 594 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImageNotFoundError = void 0;
/**
* Error thrown when an image is not found
*/
class ImageNotFoundError extends Error {
/**
* Create a ImageNotFoundError
* @param imageName Name of the image
* @param url URL of the image
*/
constructor(imageName, url) {
super(`${imageName || 'undefined image'} was not found.`);
this.name = 'ImageNotFoundError';
this.imageName = imageName;
this.url = url;
}
}
exports.ImageNotFoundError = ImageNotFoundError;