@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
21 lines (18 loc) • 474 B
JavaScript
;
class NetworkError extends Error {
/** Response details, received from the Horizon server. */
response;
constructor(message, response) {
super(message);
this.response = response;
}
/**
* Returns the error response sent by the Horizon server.
* @returns Response details, received from the Horizon server.
*/
getResponse() {
return this.response;
}
}
exports.NetworkError = NetworkError;
//# sourceMappingURL=network.js.map