UNPKG

zhonya

Version:

A simple and typed League of Legends API wrapper for Node.js

18 lines 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZhonyaError = void 0; class ZhonyaError extends Error { constructor(message, riotError) { super(message); const error = riotError; if (error && error.response && error.response.data) { this.riotError = error.response.data.status; } else { this.riotError = error; } this.name = "ZhonyaError"; } } exports.ZhonyaError = ZhonyaError; //# sourceMappingURL=ZhonyaError.js.map