lightsail-network / java-stellar-sdk

The Java Stellar SDK library provides APIs to build transactions and connect to Horizon and Soroban-RPC Server.
https://javadoc.io/doc/network.lightsail/stellar-sdk
Apache License 2.0
175 stars 160 forks source link

feat: optimize `RequestTimeoutException`, when a timeout occurs, if the server returns some information, you can read them. #622

Closed overcat closed 3 months ago

overcat commented 3 months ago

619

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 77.78%. Comparing base (734dd74) to head (5ea888b). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #622 +/- ## ============================================ - Coverage 77.79% 77.78% -0.01% - Complexity 1064 1070 +6 ============================================ Files 201 202 +1 Lines 4269 4286 +17 Branches 328 331 +3 ============================================ + Hits 3321 3334 +13 - Misses 753 755 +2 - Partials 195 197 +2 ``` | [Files](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/622?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network) | Coverage Δ | | |---|---|---| | [...java/org/stellar/sdk/requests/ResponseHandler.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/622?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Frequests%2FResponseHandler.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvcmVxdWVzdHMvUmVzcG9uc2VIYW5kbGVyLmphdmE=) | `74.28% <100.00%> (ø)` | | | [...stellar/sdk/exception/RequestTimeoutException.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/622?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Fexception%2FRequestTimeoutException.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvZXhjZXB0aW9uL1JlcXVlc3RUaW1lb3V0RXhjZXB0aW9uLmphdmE=) | `75.00% <80.00%> (-25.00%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/622/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network)