Skip to content

parsers: stop TryParse from suppressing user exceptions - #29

Merged
rameel merged 1 commit into
mainfrom
tryparse-exceptions
Sep 24, 2026
Merged

rameel merged 1 commit into
mainfrom
tryparse-exceptions

Conversation

@rameel

@rameel rameel commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Fixes #30

Catch only FatalErrorException so forced parse failures still return
false, while exceptions from user callbacks and library errors
propagate.

Parse continues to capture exceptions in ParseResult.Exception.
@rameel
rameel merged commit 97f0cb6 into main Sep 24, 2026
2 checks passed
@rameel
rameel deleted the tryparse-exceptions branch September 24, 2026 18:48
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.

TryParse hides exceptions thrown by user code

1 participant