UNPKG

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:

23 lines (22 loc) 813 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetsNotFoundError = void 0; const types_1 = require("../types"); /** * Error thrown when the assets are not found */ class AssetsNotFoundError extends Error { /** * Create a AssetsNotFoundError * @param key Key of assets * @param id ID of the specified asset */ constructor(key, id) { const dictionary = Object.assign(Object.assign({}, types_1.ExcelBinOutputs), types_1.TextMapLanguage); super(`${dictionary[key].toString()} ${id !== null && id !== void 0 ? id : ''} was not found. Try to update cached assets with Client#deploy`); this.name = 'AssetsNotFoundError'; this.key = key; this.id = id; } } exports.AssetsNotFoundError = AssetsNotFoundError;