Skip to content

[SPIKE] Error and data handling inside new architecture modularization #2665

Closed

Description

@jesmrec

This spike is intended to get a clearer idea about error handling integrations through all modules inside the app.

Goals:

  • Check if exceptions are the best way to handle errors in every layer
  • How to escalate errors to the upper layers

Edited by @davigonz:

Some considerations after checking the code:

  • RemoteOperationResult object will not longer appear above data layer, the remote datasources will retrieve data or throw new exceptions to upper layers.
  • These new exceptions will be encapsulated in a UseCaseResult object in domain layer.
  • Datasources should retrieve domain model objects, transforming them from data model objects. Example: Data layer working with ShareEntity and transforming it to Share before pushing it to upper layers. WE CAN NOT APPLY THESE CHANGES YET, FIRST WE NEED TO DECOUPLE A BIT MORE THE LAYERS.
  • ViewModels will handle UseCaseResult objects and transform the information contained there in new UIResult objects.

Activity

  1. added this to the 2.14.0 milestone on Sep 24, 2019
  2. changed the title [-][SPIKE] Error Handling inside new architecture modularization[/-] [+][SPIKE] Error and data handling inside new architecture modularization[/+] on Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions