Skip to content

Implement Contract Custom Error Enums #111

@gabito1451

Description

@gabito1451

Description: Create explicit error codes (e.g., NotAuthorized = 1, AlreadyFunded = 2) for cleaner contract failures instead of generic panics.
Requirements and context:

  • Implement the trait Into<soroban_sdk::Error>.
    Suggested execution:
  1. git checkout -b feature/contract-errors
  2. Build errors.rs.
    Test and commit:
  • feat: map generic panics to semantic error codes
    Guidelines: Closes #[issue_id].

Metadata

Metadata

Assignees

No one assigned

    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