UNPKG

@barbarbar338/bhapi

Version:

Brawlhalla API wrapper for NodeJS and web

18 lines 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BHAPIError = void 0; class BHAPIError extends Error { code; status; details; constructor(message, options) { super(message); this.name = "ApiError"; this.code = options.code; this.status = options.status; this.details = options.details; Object.setPrototypeOf(this, new.target.prototype); } } exports.BHAPIError = BHAPIError; //# sourceMappingURL=types.js.map