Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 7 forks source link

Handle several Rust API calls errors #1485

Closed HonzaR closed 1 month ago

HonzaR commented 1 month ago

Is your feature request related to a problem? Please describe.

We need to handle better getCurrentAddress, getFullyScannedHeight, and getMaxScannedHeight error responses in the SDK Kotlin layer. When a selected lightwalletd server is having an issue, this Rust API response with an error.

Describe the solution you'd like

Catch and translate the Rust side error into the Kotlin exception that clients would understand.

Alternatives you've considered

Additional context

This is the first step in the bigger effort filed in #1484