Skip to content

SDK Error Type Hierarchy #1284

Description

@DokaIzk

Title: feat: create typed error hierarchy for both SDKs

Labels: enhancement sdk
Complexity: trivial

Description:
Define error types that SDK clients can catch specifically:

try:
    events = client.get_events(contract_id)
except RateLimitError as e:
    # Handle rate limit
    print(f"Rate limit: {e.retry_after}s")
except ValidationError as e:
    # Handle validation
    print(f"Invalid: {e.field}")
except AuthenticationError as e:
    # Handle auth
    pass

Acceptance Criteria:

  • Error type hierarchy in Python SDK
  • Error type hierarchy in TypeScript SDK
  • Errors include metadata (status, message, etc)
  • Examples in documentation

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions