2.18.11
Improvements
- For
CatchBlockFilter
,NonEmptyCatchBlockFilter
classes. addExcludeError
,IncludeError
fluent methods overloads for inner exception types. - For
NonEmptyCatchBlockFilter
class, addCreateByIncluding
,CreateByExcluding
fluent methods overloads with possibility to add inner exception types. - Introduce
NonEmptyCatchBlockFilter.CreateByIncluding(IErrorSet)
,NonEmptyCatchBlockFilter.CreateByExcluding(IErrorSet) static methods
. - For
FallbackFuncsProvider
class, add protectedSetFallbackAction
,SetAsyncFallbackFunc
methods withCancellationType
param. - Directly return
Task
instead of await when converting async uncancelable non-generic delegate to precancelable when registeringPolicyResult
handler withCancellationType.Precancelable
argument. - Directly return
Task
instead of await when converting async uncancelable non generic fallback delegate to cancelable withCancellationType.Precancelable
argument.
Small changes
- Throw a
NotImplementedException
exception in thePolicyResult.SetErrors
protected method. - DRY refactoring for
IncludeError
,ExcludeError
methods ofCatchBlockFilter
,NonEmptyCatchBlockFilter
classes.
Docs changes
- Update 'FallbackPolicy' README Chapter.
- Update 'Error filters' README Chapter.
- Update 'TryCatch' README Chapter.