<#3383 docs: Document raised exceptions in client ...
# flyte-github
a
#3383 docs: Document raised exceptions in client methods Pull request opened by andreahlert Summary • Replace
: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/flytekit