Moodle

Error, exception and debug handling improvements

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Administration
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

With the introduction of exceptions and new output lib routines there are some new problems that need to be solved in error, exception and debug handling. There were also multiple old problems we could not solve earlier because of the backwards compatibility requirements.

I was maintaining the lib/setup.lib and friends since 1.6.x and I intend to continue to do that in 2.0 too

For more info see:

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

There was a proposal to use 503 instead of 404 in fatal error, it is not correct - the 503 in "early_error" means moodle can not work at all because the error occurred early in lib/setup.php, the other fatal errors mean that something is wrong, most probably something does not exist any more which means moodle is working but something is not available any more.

Show
Petr Škoda (skodak) added a comment - There was a proposal to use 503 instead of 404 in fatal error, it is not correct - the 503 in "early_error" means moodle can not work at all because the error occurred early in lib/setup.php, the other fatal errors mean that something is wrong, most probably something does not exist any more which means moodle is working but something is not available any more.
Hide
Eloy Lafuente (stronk7) added a comment -

About different default exception handlers (normal web requests one, web-services one...) just noting that perhaps it would be nice to have them under some umbrella, able to perform common tasks for all them automatically, like the transactions thing (MDL-20625) and other friends that must be processed by all the handlers in the same way.

Ciao

Show
Eloy Lafuente (stronk7) added a comment - About different default exception handlers (normal web requests one, web-services one...) just noting that perhaps it would be nice to have them under some umbrella, able to perform common tasks for all them automatically, like the transactions thing (MDL-20625) and other friends that must be processed by all the handlers in the same way. Ciao
Hide
Petr Škoda (skodak) added a comment -

ah sure, already started working on this abstraction yesterday

Show
Petr Škoda (skodak) added a comment - ah sure, already started working on this abstraction yesterday
Hide
Eloy Lafuente (stronk7) added a comment -

Also... from some days ago... MDL-20577

for your consideration about to put it here/close whatever. ciao

Show
Eloy Lafuente (stronk7) added a comment - Also... from some days ago... MDL-20577 for your consideration about to put it here/close whatever. ciao
Hide
Petr Škoda (skodak) added a comment -

done, yay! thanks everybody

Show
Petr Škoda (skodak) added a comment - done, yay! thanks everybody

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: