mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Motivation: Except for blocking methods (which shouldn't be used on the event loop), there aren't that many error cases that we should just send through the pipeline automatically. Best proof for that is that nothing in the code base did that. Therefore these methods shouldn't be throwing. If the user does indeed want to catch and fire an error through the pipeline that's still super simple `ctx.fireErrorCaught(error)`. Modifications: removed `throws` from the `ChannelInboundHandler` methods. Result: better