Skip to content

Standardize Switcher Remote error handling #233

@petruki

Description

@petruki

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions