Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api] create a generic error handler #18

Open
56aiden90 opened this issue Feb 12, 2022 · 0 comments
Open

[api] create a generic error handler #18

56aiden90 opened this issue Feb 12, 2022 · 0 comments
Assignees
Labels
🦾 refactor 리팩토링

Comments

@56aiden90
Copy link
Contributor

Feature description

We need a generic error handler to avoid hardcoding try-catch blocks for every resolver.

Related issues

N/A

Example

You can see that the pattern of creating a response object and wrapping a service method with a try-catch block is repeated. This is inefficient and needs to be delegated to a higher-level error handler if possible.
Screen Shot 2022-02-11 at 9 39 02 PM

@56aiden90 56aiden90 self-assigned this Feb 12, 2022
@56aiden90 56aiden90 added the 🦾 refactor 리팩토링 label Feb 12, 2022
@56aiden90 56aiden90 changed the title [api] generic-error-handler [api] create a generic error handler Feb 12, 2022
@56aiden90 56aiden90 added this to the 0.0.1 milestone Feb 12, 2022
@56aiden90 56aiden90 removed this from the 0.0.1 milestone Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦾 refactor 리팩토링
Projects
None yet
Development

No branches or pull requests

1 participant