Merge pull request #4997 from monishdeb/CRM-15536
[civicrm-core.git] / CRM / Core / LegacyErrorHandler.php
index fff6d204bf811b8398bd243f0238d50ada4a02c0..57b8c80e6852f443cd54468c5ed3dda5f9ca320f 100644 (file)
@@ -1,7 +1,12 @@
 <?php
 
 class CRM_Core_LegacyErrorHandler {
-  static function handledException($e) {
+  /**
+   * @param \Civi\Core\Event\UnhandledExceptionEvent $event
+   * @throws Exception
+   */
+  public static function handleException($event) {
+    $e = $event->exception;
     if ($e instanceof CRM_Core_Exception) {
       $params = $e->getErrorData();
       $message = $e->getMessage();
@@ -24,4 +29,5 @@ class CRM_Core_LegacyErrorHandler {
       }
     }
   }
+
 }