You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ab0bc23
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(dio): rename to rejectCustom/isCustom per review; restore cfug#1950 changelog
Address @kuhnroyal's naming review on cfug#2514 for consistency with the
DioException.custom factory:
- rejectCustomError -> rejectCustom (all three interceptor handlers)
- propagateInnerError -> isCustom (field, constructor, copyWith)
Also restore the cfug#1950 CHANGELOG 'Unreleased' entry that was dropped in
an earlier main merge.
Copy file name to clipboardExpand all lines: dio/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ See the [Migration Guide][] for the complete breaking changes list.**
11
11
On web, timeout handling is best-effort because synchronous JavaScript work cannot be preempted.
12
12
- Fix `FormData.clone()` dropping `boundaryName` and `camelCaseContentDisposition`, so a retried multipart request now keeps the original options instead of silently falling back to the defaults.
13
13
- Fix `QueuedInterceptor` stalling its queue forever when the active request is cancelled while its callback is still pending (never calls `next`/`resolve`/`reject`), which blocked every subsequent request routed through the interceptor.
14
+
- Add an opt-in way for interceptors to propagate a custom exception type to the caller via `DioException.custom(...)` and `handler.rejectCustom(...)`, so `on MyException catch (e)` matches at the await boundary instead of always seeing `DioException`.
0 commit comments