Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71063

Improve moodle exceptions handling

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 4.0
    • General, UX
    • MOODLE_400_STABLE

      While advancing with MDL-69936 a good number of ideas about moodle exceptions, how they are reported... came on the table.

      This issue has been created to keep all them together and, if a project to work on exceptions comes to happen, can be changed to be a proper Epic, fixing and improving anything related with exceptions.

      Following, there are the main points and thoughts that were commented along the linked issue. All them should be considered if work starts here:

      1. Need to create any type of new exceptions hierarchy, or is it ok with current one.
      2. Contenxt-aware exception display for UI, rendering the rest of the page, or standalone error message, only linking to main page.
      3. Analyse if we can have a bunch of generic translated messages so, instead of using a different string for each case, we only use a standard message ("file problem detected", "inconsistency found"... ) together with a more specific error code.
      4. Differences between UI and CLI
      5. Differences between running under prod mode or dev mode.
      6. When to show the language identifiers (errorcode) and when the translations (UI/CLI/Logs).
      7. Allow the use of "literals" (plain English phrases) as errorcode (instead of string identifiers).
      8. Verify if all current uses (80% aprox of total uses), that are right now translated strings, are correctly translated or we can reduce them because they are only to be shown to devs or caught.

      Of course, more points can come any time, please keep them numbered for easier reference.

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 minutes
                5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.