Skip to content

Update WordPressOrgNetwork to return NetworkError similar to AlamofireNetwork #11577

@jaclync

Description

@jaclync

From the original discussion #11558 (comment), the network requests from AlamofireNetwork are now returning NetworkError after #11110 while WordPressOrgNetwork is still returning AFError. It can be confusing in the app where we have two ways of error handling based on the status code based on the network implementation. It'd be more consistent if all Network implementations return the same error type NetworkError based on the status code, also to abstract the implementation of the networking library (Alamofire).

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: technical debtRepresents or solves tech debt of the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions