UNPKG

fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

19 lines 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Represents an error that is thrown when the XMPP connection fails to be established */ class XMPPConnectionError extends Error { /** * @param error The error that caused the connection to fail */ constructor(error) { super(); this.name = 'XMPPConnectionError'; this.message = `The XMPP connection failed to be established: ${error.condition} - ${error.text}`; this.condition = error.condition; this.text = error.text; } } exports.default = XMPPConnectionError; //# sourceMappingURL=XMPPConnectionError.js.map