zcash-android-wallet-sdk
zcash-android-wallet-sdk copied to clipboard
Add `RustLayerException.ValidateAddressException`
Is your feature request related to a problem? Please describe.
A few Synchronizer
APIs throw RuntimeException
, which is too generic and should be replaced with a more specific one.
Describe the solution you'd like
Replace RuntimeException
exception with e.g. RustLayerException.ValidateAddressException
for these Synchronizer APIs:
- Synchronizer.isValidShieldedAddr
- Synchronizer.isValidTransparentAddr
- Synchronizer.isValidUnifiedAddr
- Synchronizer.isValidTexAddr
Alternatives you've considered
Also, ensure that all the underlying functions properly state the RuntimeException
exception in their contract, i.e., in Backend
and TypesafeBackend
.