RxSwift main repo use this strategy to avoid countless private struct MyError: Swift.Error. We actually need only one test error type for whole project, no need to create own on every class.
In case of complicated error logic (which i can't see now) custom private type can be created
RxSwift main repo use this strategy to avoid countless
private struct MyError: Swift.Error
. We actually need only one test error type for whole project, no need to create own on every class. In case of complicated error logic (which i can't see now) custom private type can be created