Skip to content

refactor: consolidate equivalent response exception branches - #610

Merged
yeongseon merged 1 commit into
mainfrom
refactor/response-exception-parity
Oct 26, 2026
Merged

yeongseon merged 1 commit into
mainfrom
refactor/response-exception-parity

Conversation

@yeongseon

Copy link
Copy Markdown
Owner

Summary

Remove three specific exception handlers already handled identically by their adjacent Exception boundary. No new hierarchy or response behavior.

Changes

First characterize TypeError, ValueError and RuntimeError at validation, model serialization and direct serialization seams under both disclosure settings. Assert status, formatter identity policy and one log carrying the original exception. Remove only redundant handlers and unused import.

Validation

Characterization passed before refactoring: 809 passed, 27 deselected, 4 warnings in 18.00s. After refactoring Python 3.11 make check-all build: 809 passed, 27 deselected, 4 warnings in 18.07s; coverage 97.36%. Existing AdapterValidationError and serialization tests remain. GitHub CI pending.

Related Issues

Closes #598

Merge authorized by the maintainer’s explicit instruction.

@yeongseon

Copy link
Copy Markdown
Owner Author

Merge authorized by the maintainer’s explicit instruction. Reviewed deletion-only production change against characterization of response/formatter/logging parity. Exact head 26037a7 has all five required checks green and no unresolved threads. Local final summary: 809 passed, 27 deselected, 4 warnings in 18.07s; coverage 97.36%.

@yeongseon
yeongseon merged commit e96a0e7 into main Oct 26, 2026
25 checks passed
@yeongseon
yeongseon deleted the refactor/response-exception-parity branch October 26, 2026 15:20
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.

refactor(response): remove redundant exception branches without changing error behavior

1 participant