Retry configuration, nullable fields, and the typed error hierarchy.
RetryConfig— customize retry attempts, backoff, and max delaynullable=True— returnNonefor missing values instead of raisingset_null()— explicitly null a field- Error hierarchy:
NotFoundError,InvalidArgumentError,DecreeErrorbase - Disabling retry with
retry=None
cd examples
make setup
cd error-handling
python main.py| Exception | When |
|---|---|
NotFoundError |
Field or tenant doesn't exist |
InvalidArgumentError |
Value fails schema validation |
LockedError |
Field is locked |
ChecksumMismatchError |
Optimistic concurrency conflict |
PermissionDeniedError |
Auth failure |
UnavailableError |
Server unreachable (retryable) |
TypeMismatchError |
SDK can't convert value to requested type |
DecreeError |
Base class for all of the above |