Is your feature request related to a problem? Please describe.
Standardize all error handling to a single exception type in order to decrease complexity when an error response is returned.
Allows the business layer to funnel logic in case of e.g. 429 which can enable silent mode.
Describe the solution you'd like
Replace all unnecessary logic to handle API response to a single SwitcherRemoteException.
Describe alternatives you've considered
Build error handling externally, which will create better cohesion but would still keep unnecessary complexity.
Is your feature request related to a problem? Please describe.
Standardize all error handling to a single exception type in order to decrease complexity when an error response is returned.
Allows the business layer to funnel logic in case of e.g. 429 which can enable silent mode.
Describe the solution you'd like
Replace all unnecessary logic to handle API response to a single SwitcherRemoteException.
Describe alternatives you've considered
Build error handling externally, which will create better cohesion but would still keep unnecessary complexity.