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

Add user friendly feedback when an exception occurs #148

Closed
anneschuth opened this issue Aug 23, 2024 · 0 comments · Fixed by #221
Closed

Add user friendly feedback when an exception occurs #148

anneschuth opened this issue Aug 23, 2024 · 0 comments · Fixed by #221
Assignees

Comments

@anneschuth
Copy link
Member

anneschuth commented Aug 23, 2024

Description

When something goes wrong, the user should be informed through the GUI with a "user friendly" description. That way the user knows what has or did not happen and can act accordingly.

Implementation notes

Errors the user can run into through the GUI have to be made "user friendly" and translatable (for the babel translations).

The NLDS has nice options for showing errors.

Verify all exceptions are correctly handled, so default exceptions may be rewritten to the correct exceptions and translations have to be added. Pydantic exceptions can be excluded for now (errors like the one below when creating a new project)

Image

Exceptions

CURRENT: "Settings error for options {field}"
NL: “Er is een fout opgetreden bij het instellen van de opties voor ‘{field}’. Controleer de instellingen en probeer het opnieuw.”
EN: “An error occurred while configuring the options for ‘{field}’. Please check the settings and try again.””

2. HTTP_500_INTERNAL_SERVER_ERROR
CURRENT: _"Repository error"
NL: "Er is een interne serverfout opgetreden bij het verwerken van uw verzoek. Probeer het later opnieuw."
EN: “An internal server error occurred while processing your request. Please try again later.”

3. HTTP_501_NOT_IMPLEMENTED
CURRENT: "Instrument error"
NL: “Deze functie is momenteel niet beschikbaar. Probeer het later opnieuw of neem contact op met de ondersteuning.”
EN: “This feature is currently not available. Please try again later or contact support.”

4. HTTP_400_BAD_REQUEST
CURRENT: "Unsafe file error for file"
NL: “Het bestand dat u probeert te uploaden is onveilig of niet toegestaan. Controleer het bestand en probeer opnieuw.”
EN: “The file you are trying to upload is unsafe or not allowed. Please check the file and try again.”

5. (HTTP 204 No Content)
CURRENT: "No Entity Found"
NL: “Er zijn geen gegevens gevonden voor uw verzoek. Controleer uw zoekcriteria en probeer het opnieuw.”
EN: “No data was found for your request. Please check your search criteria and try again.”

6. HTTP_404_NOT_FOUND
CURRENT: "Not found"
NL: “De gevraagde pagina of bron kon niet worden gevonden. Controleer de URL en probeer het opnieuw.”
EN: “The requested page or resource could not be found. Please check the URL and try again.”

@anneschuth anneschuth converted this from a draft issue Aug 23, 2024
@rubenrouwhof rubenrouwhof removed their assignment Sep 4, 2024
@berrydenhartog berrydenhartog self-assigned this Sep 20, 2024
@berrydenhartog berrydenhartog linked a pull request Sep 30, 2024 that will close this issue
5 tasks
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in 👾 AI Validation Team Planning Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

3 participants