Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor exception handling in NatsException #677

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Refactor exception handling in NatsException #677

merged 1 commit into from
Nov 13, 2024

Conversation

mtmk
Copy link
Collaborator

@mtmk mtmk commented Nov 13, 2024

I think we did put private throw helpers in a few classes going forward static method on the exception class itself looks very expressive and accessible.

@to11mtm
Main advantage of such is we can get some better inlining/opts and avoid certain callstack checks on happy path....

see also review comments #674 (comment)

@mtmk mtmk merged commit 6b6cce6 into main Nov 13, 2024
13 checks passed
@mtmk mtmk deleted the fixes-exceptions branch November 13, 2024 09:25
mtmk added a commit that referenced this pull request Nov 13, 2024
* Add OnSocketAvailableAsync Hook (#647)
* Refactor exception handling in NatsException (#677)
* Fixed an exception which happens when PutAsync is used more than once and activity logging is enabled in main project (#675)
* open Header.Writer class and create GetBytesLength method (#674)
* Fix date time serialization to use ISO8601 (#664)
@mtmk mtmk mentioned this pull request Nov 13, 2024
mtmk added a commit that referenced this pull request Nov 13, 2024
* Add OnSocketAvailableAsync Hook (#647)
* Refactor exception handling in NatsException (#677)
* Fixed an exception which happens when PutAsync is used more than once and activity logging is enabled in main project (#675)
* open Header.Writer class and create GetBytesLength method (#674)
* Fix date time serialization to use ISO8601 (#664)
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.

2 participants