@fnlb-project/fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
18 lines • 646 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Represents an error that is thrown when the stomp websocket connection fails to be established
*/
class StompConnectionError extends Error {
/**
* @param error The error that caused the connection to fail
*/
constructor(message, statusCode) {
super();
this.name = 'StompConnectionError';
this.message = `Failed to connect to eos connect stomp: ${message} (status code ${statusCode})`;
this.statusCode = statusCode;
}
}
exports.default = StompConnectionError;
//# sourceMappingURL=StompConnectionError.js.map