Skip to content

Implement StellarError #35

Description

@codebestia

Raised when a Stellar/Horizon call fails — rejected transaction, missing trustline, insufficient balance. Should wrap the underlying stellar_sdk exception and expose the Stellar result code for programmatic handling.

Proposed Steps:

  • Define StellarError(ShadeError) in errors.py.
  • Add stellar_result_code: Optional[str] and original_error: Exception.
  • Catch stellar_sdk exceptions in the Stellar integration layer and re-raise as StellarError.

Acceptance Criteria:

  • A rejected Stellar transaction raises StellarError with the Horizon result code.
  • error.original_error gives access to the raw stellar_sdk exception.
  • A trustline-missing error surfaces as StellarError with a descriptive message.

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions