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

Improve moodle exceptions handling

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: General, UX
    • Labels:
    • Affected Branches:
      MOODLE_400_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

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