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

ErrorCode 설정 #308

Open
Belnut opened this issue Jul 30, 2021 · 0 comments
Open

ErrorCode 설정 #308

Belnut opened this issue Jul 30, 2021 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested Suggest

Comments

@Belnut
Copy link
Collaborator

Belnut commented Jul 30, 2021

현재 해당 코드의 에러처리는 전부
400 status,
custom message 를 날리며
이것 마져도 전부 하드코딩으로 박아놨습니다.

일부 제어는 이 방법이 유용하나 대부분의 제어는 단순한 반복노동이며, 오타 문제에 취약합니다.

enum 또는 db에 ErrorCode 를 생성하고 이를 가져와 사용하는 방법과 함께
CustomException를 통한 통일성있는 제어를 제안합니다.

또는 다른 제안이 있으신 분은 자유롭게 이야기해주세요

@Belnut Belnut added help wanted Extra attention is needed question Further information is requested Suggest labels Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested Suggest
Projects
None yet
Development

No branches or pull requests

1 participant