Skip to content

errors: Remove unused parent exceptions - #175

Open
BenWestgate wants to merge 1 commit into
reviewability-v1from
codex/split146-error-classes
Open

BenWestgate wants to merge 1 commit into
reviewability-v1from
codex/split146-error-classes

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Remove the unused InvalidHeader and InvalidPayload parent exceptions. Keep specific failure types under CodexError.

Extracted from #146; based on #174. 182 focused API, parsing, profile and sharing tests pass.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:17:53.480078Z 13b8a4e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 1c9c77a625

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@BenWestgate
BenWestgate added this pull request to stack #205 October 24, 2026 13:43
Base automatically changed from codex/split146-terminal to reviewability-v1 October 24, 2026 14:01
Nothing raised or caught either class. Their children now derive from
CodexError directly, so each failure names its specific reason.

Claude-Session: https://claude.ai/code/session_01XGMpowzJwwgyHMEd63ijDe
@BenWestgate
BenWestgate force-pushed the codex/split146-error-classes branch from 1c9c77a to 13b8a4e Compare October 24, 2026 14:01
@BenWestgate
BenWestgate marked this pull request as ready for review October 24, 2026 14:03
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Comment thread src/codex32/errors.py
InvalidShareIndex = _error("InvalidShareIndex", CodexError, "The share index conflicts with its header.")

InvalidPadding = _error("InvalidPadding", CodexError, "The discarded payload padding is invalid.")
InvalidBip39Checksum = _error("InvalidBip39Checksum", CodexError, "The BIP39 checksum is invalid.")

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're removing the BIP39 profile in another PR, so this doesn't belong in this library anymore.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed for the BIP39-removal PR. profiles/bip39.py still imports and raises InvalidBip39Checksum at this head; deleting it here would break the current profile and expand this PR's scope. Remove both together in that PR. (AI-assisted response.)

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted static review. ACK 13b8a4e. Removing the unused parent exceptions leaves specific exceptions under CodexError. Keep InvalidBip39Checksum until the separate BIP39 profile removal; it is still raised by the current profile. Current-head CI is queued.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 13b8a4ee4f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch has not been deployed

No deployments
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