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

Generalize exception handling #8

Closed
Maxitet opened this issue Aug 22, 2021 · 0 comments · Fixed by #18
Closed

Generalize exception handling #8

Maxitet opened this issue Aug 22, 2021 · 0 comments · Fixed by #18
Assignees
Labels
backend This issue relates to backend scope
Milestone

Comments

@Maxitet
Copy link
Collaborator

Maxitet commented Aug 22, 2021

After migration to Vue frontend need to generalize exceptions and exception handling. Exceptions should be handled in places where it'll make most sense. As much close to cause as it possible.

  1. Check Spring's @ControllerAdvice. It'll help to map exception to response.
  2. Create error message model (class or group of classes). It can contain error message and error code(-s) that will be returned from backend.
@Maxitet Maxitet added the backend This issue relates to backend scope label Aug 22, 2021
@Maxitet Maxitet added this to the MVP milestone Aug 22, 2021
@TomSuworof TomSuworof linked a pull request Aug 30, 2021 that will close this issue
TomSuworof added a commit that referenced this issue Sep 10, 2021
Maxitet added a commit that referenced this issue Sep 11, 2021
closes #8. Feature 8 exception handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This issue relates to backend scope
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants