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:

19 lines (18 loc) 602 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMapFormatError = void 0; const types_1 = require("../types"); /** * Error thrown when the text map is not in the correct format */ class TextMapFormatError extends Error { /** * Create a TextMapFormatError * @param language Language of the text map */ constructor(language) { super(`Invalid json format. Check if the "${types_1.TextMapLanguage[language].join(', ')}" is correct`); this.name = 'TextMapFormatError'; } } exports.TextMapFormatError = TextMapFormatError;