Skip to content

Decode API errors #33

@nineinchnick

Description

@nineinchnick

APIs return errors as JSON objects, usually with an error code and a message. Retrofit2 that we use for making API calls doesn't deserialize these but they're available in the response.errorBody().

Add an error model and a method to deserialize errors so the message can be made visible to the user.

Refs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions