acoustic-carpenter-78188
03/31/2026, 3:18 AM:raises: TODO placeholders with actual exception documentation in RawSynchronousFlyteClient and SynchronousFlyteClient methods
• Document 16 methods across raw.py and friendly.py
Changes
The documented exceptions are based on the RetryExceptionWrapperInterceptor which converts gRPC status codes to Flyte exceptions:
| gRPC Status | Flyte Exception |
| ---------------- | --------------------------------- |
| UNAUTHENTICATED | FlyteAuthenticationException |
| NOT_FOUND | FlyteEntityNotExistException |
| ALREADY_EXISTS | FlyteEntityAlreadyExistsException |
| INVALID_ARGUMENT | FlyteInvalidInputException |
| UNAVAILABLE | FlyteSystemUnavailableException |
| Other | FlyteSystemException |
Why
This improves API documentation and helps users understand what exceptions to expect when using the client methods, enabling better error handling in their code.
Test plan
• Documentation-only change, no functional code modified
• Verified exception types match wrap_exception_interceptor.py logic
flyteorg/flytekitacoustic-carpenter-78188
03/31/2026, 3:18 AM