android10 / android10/Android-CleanArchitecture

ErrorMessageFactory cleaner approach?

Open
#71 3 comments 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
Java
Stars
15.5k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

I was wondering if this can be done in an efficient way than the current one. Because if you have many type of exceptions then this will be a huge `if/else if`` to catch all the cases.

I suppose that one solution is to separate the factories per feature but still I will duplicate the same code for application error or no internet connection to every factory.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.