refactor(core): standardize frontend error handling (#10667)

This commit is contained in:
forehalo
2025-03-06 13:10:18 +00:00
parent 2e86bfffae
commit e02fb4fa94
70 changed files with 495 additions and 480 deletions

View File

@@ -7067,6 +7067,10 @@ export function useAFFiNEI18N(): {
* `An internal error occurred.`
*/
["error.INTERNAL_SERVER_ERROR"](): string;
/**
* `Network error.`
*/
["error.NETWORK_ERROR"](): string;
/**
* `Too many requests.`
*/

View File

@@ -1758,6 +1758,7 @@
"com.affine.fail-to-join-workspace.description-1": "Unable to join <1/> <2>{{workspaceName}}</2> due to insufficient seats available.",
"com.affine.fail-to-join-workspace.description-2": "Please contact your workspace owner to add more seats.",
"error.INTERNAL_SERVER_ERROR": "An internal error occurred.",
"error.NETWORK_ERROR": "Network error.",
"error.TOO_MANY_REQUEST": "Too many requests.",
"error.NOT_FOUND": "Resource not found.",
"error.BAD_REQUEST": "Bad request.",