Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15022

Allow exceptions to bubble up to CMS

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      CiviCRM provides CRM_Core_TemporaryErrorScope::useException() which allows us to disable errors from within CiviCRM and throw exceptions instead. However, these exceptions are caught by CRM_Core_Invoke::invoke() and passed into CRM_Core_Error::handleUnhandledException($e) where PHP is subsequently killed.

      There's a good use case for the CMS to be handling the exception, ie. by providing a nice pretty error page, logging to CMS logger, etc.

      This issue tracks issues with allowing exceptions to bubble up into the CMS.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              torrance123 Torrance
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: