-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomersonlydust-wavesoroban-contract
Description
Description:
Centralize error handling in errors.rs with a custom Error enum for ManageHub contracts.
Tasks:
- Create
src/errors.rswithErrorenum including:SubscriptionAlreadyExistsInvalidPaymentUserNotFoundUnauthorizedLogAlreadyExistsTokenAlreadyIssued
- Use
#[contracttype]for the enum. - Document each error.
- Export for other modules.
- Include in
lib.rs. - Test with a dummy function.
Acceptance Criteria:
errors.rsdefinesErrorenum with#[contracttype].- Errors are documented and exported.
- Module compiles.
- Test verifies error return.
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programgood first issueGood for newcomersGood for newcomersonlydust-wavesoroban-contract