Result<T, E> instead of throwing.
Result Pattern
Error Types
All errors have a_tag property for type discrimination:
| Error Tag | Description | Retryable |
|---|---|---|
NetworkError | Connection issues, timeouts, aborted requests | Usually |
ApiError | Server errors, rate limits | 5xx, 429 |
ValidationError | Invalid input parameters | No |
ConfigError | SDK misconfiguration | No |