Skip to main content

Error Handling

This guide covers error handling patterns for the Privacy Boost React SDK. For the cross-platform error code reference, see Error Handling.

Error Types

All SDK operations throw PrivacyBoostError on failure:

Common Error Codes

Basic Error Handling

Retry Pattern

User-Friendly Error Messages

Best Practices

1. Always Handle Wallet Rejections Silently

2. Log Errors for Debugging

Next Steps