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:

22 lines (21 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AnnError = void 0; /** * Error thrown when the getAnnList or getAnnContent request fails */ class AnnError extends Error { /** * Create a AnnError * @param res Response of getAnnList or getAnnContent request */ constructor(res) { const message = res.statusText; super(message); this.name = 'AnnError'; this.statusCode = res.status; this.statusMessage = res.statusText; this.url = res.url; } } exports.AnnError = AnnError;