Skip to content

Add error code reference and cross-link troubleshooting guide - #136

Open
Mathew2k-hash wants to merge 1 commit into
wraith-protocol:developfrom
Mathew2k-hash:feat/error-codes-reference
Open

Add error code reference and cross-link troubleshooting guide#136
Mathew2k-hash wants to merge 1 commit into
wraith-protocol:developfrom
Mathew2k-hash:feat/error-codes-reference

Conversation

@Mathew2k-hash

Copy link
Copy Markdown

Add normative error-code reference and cross-link troubleshooting guide

Fixes the "support keeps re-typing SDK errors in Discord" problem by giving every error a
stable, linkable anchor.

What's new

reference/error-codes.mdx — a new normative reference page with one table per error source:

  • Soroban contract errors (HostError: Error(Contract, #N)) for stealth-registry,
    stealth-sender, and wraith-names — symbolic name, meaning, common cause, and fix for every
    variant
  • SDK Agent Client errors — err.message patterns thrown by Wraith / WraithAgent
  • SDK Stellar Chain Primitives errors — throw-sites in @wraith-protocol/sdk/chains/stellar
    (meta-address decoding, key derivation, ECDH edge cases)
  • CLI errors — all five WRAITH_* exit codes
  • Soroban RPC / indexer errors — retention_window_exceeded, start_ledger_too_old,
    invalid_cursor, contract_not_found, ledger_not_found
  • Quick-reference cross-index mapping all 20 stellar-troubleshooting.mdx entries to the
    canonical row in this table

Cross-links added to guides/stellar-troubleshooting.mdx

Top-of-file callout pointing to the new reference, plus inline Reference: lines at sections 7,
13–20 linking directly to the matching table anchor.

Nav

reference/error-codes added as the first entry in the Reference group in docs.json.

Auto-generation note

The page documents a generate:error-codes script pattern (mirroring
scripts/generate-stellar-reference.ts) for keeping contract error tables in sync from
TypeScript bindings once the script is implemented.

Testing

pnpm run check:snippets passes — 60 MDX files, 572 snippets, 0 failures. The new page has no
code fences so it adds no new CI surface.
closes #121

- Add reference/error-codes.mdx: normative flat tables for Soroban
  contract errors (#N codes), SDK error messages, CLI error codes, and
  Soroban RPC/indexer errors. Each row has a stable anchor for Discord
  and support citations.
- Add cross-links from every relevant section in
  guides/stellar-troubleshooting.mdx back to the matching table row.
- Add reference/error-codes to the Reference nav group in docs.json.
- Include auto-generation note describing a generate:error-codes script
  pattern mirroring scripts/generate-stellar-reference.ts.
@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@Mathew2k-hash Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error code reference (tabular + SDK / CLI / indexer coverage)

1 participant