Skip to content

♻️ Extract InvalidTaggedResponseError error - #687

Merged
nevans merged 2 commits into
masterfrom
extract-invalid-tagged-response-error
Jun 4, 2026
Merged

♻️ Extract InvalidTaggedResponseError error#687
nevans merged 2 commits into
masterfrom
extract-invalid-tagged-response-error

Conversation

@nevans

@nevans nevans commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

This converts some instances of InvalidResponseError into a subclass: InvalidTaggedResponseError. This refactors code that was introduced by #664, which raises an exception when the server sends a tagged OK response for a command before that command has been fully sent.

Please note that the exception class documents more error conditions than are currently handled.

It also adds a very simple Command data object to encapsulate information that's helpful for this error reporting. Future commits may use these command objects to track the state of active commands.

nevans added 2 commits June 4, 2026 13:11
This converts some instances of `InvalidResponseError` into a subclass:
`InvalidTaggedResponseError`.  This refactors code that was introduced
by #664, which raises an exception when the server sends a tagged `OK`
response for a command *before* that command has been fully sent.

Please note that the exception class documents more error conditions
than are currently handled.

It also adds a very simple `Command` data object to encapsulate
information that's helpful for this error reporting.  Future commits
may use these command objects to track the state of active commands.
@nevans
nevans merged commit 9d47ed5 into master Jun 4, 2026
39 checks passed
@nevans
nevans deleted the extract-invalid-tagged-response-error branch June 4, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant