@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
19 lines (17 loc) • 447 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;
}
}
export { NetworkError };
//# sourceMappingURL=network.js.map