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

Handle nested inner exceptions #2166

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Conversation

martincostello
Copy link
Member

  • Replicate behaviour of v7 policies and recursively check all inner exceptions and AggregateException to handle inner exceptions.
  • Refactor predicate builder test cases to make a bit more readable.
  • Use collection expression.

Resolves #2161.

- Replicate behaviour of v7 policies and recursively check all inner exceptions and `AggregateException` to handle inner exceptions.
- Refactor predicate builder test cases to make a bit more readable.
- Use collection expression.

Resolves App-vNext#2161.
@martincostello martincostello added this to the v8.4.1 milestone Jun 26, 2024
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.80%. Comparing base (7105558) to head (7837eef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2166      +/-   ##
==========================================
+ Coverage   83.78%   83.80%   +0.02%     
==========================================
  Files         313      313              
  Lines        7152     7163      +11     
  Branches     1057     1061       +4     
==========================================
+ Hits         5992     6003      +11     
  Misses        789      789              
  Partials      371      371              
Flag Coverage Δ
linux 83.80% <100.00%> (+0.02%) ⬆️
macos 83.80% <100.00%> (+0.02%) ⬆️
windows 83.80% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Add more test coverage for nested exceptions.
Add a unit test for a `AggregateException` with no inner exeptions.
@martincostello martincostello merged commit 2b44e7a into App-vNext:main Jun 28, 2024
18 checks passed
@martincostello martincostello deleted the gh-2161 branch June 28, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Undocumented breaking changes from Policy.HandleInner to PredicateBuilder.HandleInner
2 participants