Error Handling
Use this skill when translating backend errors to user-facing messages, surfacing operation errors in the UI, or working on the Nuxt error page.
What a code means, and how it is put together, are settled by the error codes convention; this skill starts from a code that already exists.
The message dictionary maps each backend code to an i18n locale path (ERROR_CODE_HASH + ERROR_LOCALE_HASH in app/constants-error.js); the i18n layer renders the path into the active language.
For the extended rationale (structure, resolution, and maintenance guidance), see error-handling-structure.
Core
| Topic | Description | Reference |
|---|---|---|
| Dictionaries | The dictionaries in app/constants-error.js: ERROR_CODE_HASH (per-code identifiers) and ERROR_LOCALE_HASH (code → locale path), plus conventions for adding errors | dictionaries |
| Resolving & surfacing | The capsule resolution point (extractResolvedErrorLocalePath) and the errorMessageHashReactive pattern that binds errors into templates | resolving-and-surfacing |
| Error page | The Nuxt error.vue page delegating to ErrorPageContext | error-page |
| Structure & rationale | The dictionary structure, resolution, and adding/maintaining entries | error-handling-structure |


