Skip to main content
Both SDKs use standardized error codes prefixed with RAIN_. iOS throws RainSDKError (a Swift enum conforming to LocalizedError); Android throws RainError (a sealed class). Every error exposes an error code string for logging and programmatic handling.

Error codes

Every code below is a specific, catchable case:

Handling errors

Switch on the specific cases you need to handle, with a default case for the rest:

Accessing the error code

Every error exposes a string code (for example "RAIN_101") for logging or analytics:

Troubleshooting

Common symptoms and their fixes:

What’s next

Embedded Wallets Overview

Install the SDK and set up embedded wallets.

Balances & Transactions

Query balances and send tokens.

Withdraw Collateral

Execute collateral withdrawals from your app.