Skip to content

fix(python-sdk): align typed error metadata - #1618

Open
realfishsam wants to merge 1 commit into
mainfrom
fix/python-error-parity-1616-1528
Open

realfishsam wants to merge 1 commit into
mainfrom
fix/python-error-parity-1616-1528

Conversation

@realfishsam

Copy link
Copy Markdown
Contributor

Summary

Align Python typed-error metadata with the TypeScript SDK by giving directly raised subclasses their specific default error codes and exposing the concrete class through .name. Explicit wire/server metadata continues to override these defaults.

This fixes a coherent cross-SDK error-contract cluster:

Validation

  • python3 -m py_compile sdks/python/pmxt/errors.py sdks/python/tests/test_errors.py — passed
  • Direct importlib regression covering 9 default codes, concrete names, retryability, and wire overrides — passed
  • git diff --check — passed
  • Full pytest collection is locally blocked because this checkout does not contain generated pmxt_internal artifacts; the focused regression tests are committed for CI.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment