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

Missing 'new' keyword when throwing exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.4, 3.3.1
    • 3.2, 3.3, 3.4
    • General

      1. Do a grep throughout the Moodle core and confirm there are no cases where we are calling

        throw (\)coding_exception

        without using the new keyword.

      I discovered this when reviewing the analytics code and wondered if perhaps this was copied from other places in core and found a few.

            markn Mark Nelson
            markn Mark Nelson
            Ryan Wyllie Ryan Wyllie
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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