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 Error handling #77

Open
uier opened this issue Mar 5, 2023 · 1 comment
Open

API Error handling #77

uier opened this issue Mar 5, 2023 · 1 comment

Comments

@uier
Copy link
Member

uier commented Mar 5, 2023

目前各個 component 自行解析 server 回傳的 error response 去產生錯誤訊息給使用者,預期在 api.ts 的 interceptor 能夠集中處理,透過與後端定義 error code,以及在 i18n 中定義各個 code 的 localized message 和 fallback message

@uier
Copy link
Member Author

uier commented Mar 5, 2023

related to #32 #42 #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant