refactor: improve exception handling with coroutine cancellation exception
requested to merge 2479-refactor-handlenetworkresult-method-to-rethrow-kotlin-coroutine-s-cancellationexception into main
Description
The rethrowing of CancellationException brings better coroutine cancellation handling, which adheres to the best practice.
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2479
10 commandments of code reviews
Summary by CodeRabbit
-
Bug Fixes
- Improved error handling for network operations by explicitly managing cancellation events.
- Enhanced robustness of the network handling logic while retaining existing functionality for timeouts and other errors.
Edited by CodeRabbitAI