Re: [whatwg/dom] Add a way to identify Abort errors originating from controllers (Issue #1033)

Stated another way, the fact that a function accepts a signal should not change how you handle its errors. If you expect a function to return error types {X, Y, ...other stuff you don't care about}, and you want special handling for X and Y, then just add special handling for those, and rethrow the rest. It doesn't matter which among X/Y/other stuff come from logic provided by the controller, vs. the function body.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1033#issuecomment-974869224

Received on Sunday, 21 November 2021 18:29:15 UTC