Error Handling

Error Handling - SDK Error Management

This document describes error handling in the SDK.

Error Types

Error Categories

Network Errors: Connection issues.

Validation Errors: Invalid input.

Cryptographic Errors: Crypto failures.

Handling

Example

match result {
    Ok(value) => { /* success */ }
    Err(Error::Network(e)) => { /* handle network error */ }
    Err(e) => { /* handle other error */ }
}

Conclusion

Comprehensive error handling.

Last updated