-
Notifications
You must be signed in to change notification settings - Fork 2
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 에러 핸들링 #166
[노철] - api 에러 핸들링 #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마이페이지 api 처리가 까다로워보이는데 잘 하셨네요 !! 고생 많으셨습니다 !! 🤗
await submitCertification(code).catch((error: AxiosError) => { | ||
if (error && error.response) { | ||
const status = error.response.status; | ||
if (status <= 400 || status >= 500) throw error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분이 네트워크 연결 실패나 기타 이유로 에러일 경우 페이지 단위 에러 바운더리로 넘기기 위해 다시 throw 하는 부분일까요 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 401부터 409까지는 인증 결과 에러입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 노철님!! LGTM
…into feat/#153/api-error-handling
📌 이슈 번호
close #153
🚀 구현 내용