Error Enum
Law4DevsError implements std::error::Error and Display via thiserror.
Matching Errors
With ? Propagation
Retry Behavior
The SDK automatically retries429 and 5xx responses with exponential backoff:
| Attempt | Delay |
|---|---|
| 1st retry | 1 second |
| 2nd retry | 2 seconds |
| 3rd retry | 4 seconds |
404 and 400 are thrown immediately without retrying.
Safe Get Pattern
Streams and Errors
Each item in aniter() stream is a Result<T, Law4DevsError>. A single failed page stops the stream:
