Skip to content

Improve API error messages#300

Open
Hyrudotcom wants to merge 1 commit into
hyperliquid-dex:masterfrom
Hyrudotcom:codex/self-describing-api-errors
Open

Improve API error messages#300
Hyrudotcom wants to merge 1 commit into
hyperliquid-dex:masterfrom
Hyrudotcom:codex/self-describing-api-errors

Conversation

@Hyrudotcom
Copy link
Copy Markdown

Summary

  • Initialize ClientError and ServerError with useful exception messages.
  • Add regression coverage for client and server error string output while preserving existing attributes.

Why

The custom API errors stored details on attributes, but did not pass a message to Exception, so str(error) and traceback output were blank.

Validation

  • Direct regression checks passed.
  • py_compile passed.

@Hyrudotcom Hyrudotcom force-pushed the codex/self-describing-api-errors branch from 6fd14b5 to f9b8cdf Compare June 1, 2026 08:52
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.

1 participant