Skip to content

🥅 Add ResponseParseError#parser_methods (and override #==) - #615

Merged
nevans merged 1 commit into
masterfrom
response_parse_error-parser_methods
Feb 20, 2026
Merged

🥅 Add ResponseParseError#parser_methods (and override #==)#615
nevans merged 1 commit into
masterfrom
response_parse_error-parser_methods

Conversation

@nevans

@nevans nevans commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

Since most parser method names are based on rules in the IMAP grammar, #parser_methods is a quick way to figure out where the parsing got to, without needing to carefully read the #backtrace_locations. This basically just extracts the core of what the parser debug message has been doing for three years (bd2ddc0).

This also updates ResponseParseError#== to returns true when all attributes are equal, except for #backtrace and #backtrace_locations which are replaced with #parser_methods. This allows deserialized errors to be compared, which is primarily useful for testing.

This also updates `ResponseParseError#==` to returns true when all
attributes are equal, except for `#backtrace` and `#backtrace_locations`
which are replaced with `#parser_methods`.

This allows deserialized errors to be compared.
@nevans nevans added the enhancement New feature or request label Feb 20, 2026
@nevans nevans changed the title 🥅 Add ResponseParseError#parser_methods Feb 20, 2026
@nevans
nevans merged commit 4cb320f into master Feb 20, 2026
55 of 56 checks passed
@nevans
nevans deleted the response_parse_error-parser_methods branch February 20, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

1 participant