<?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();
}
}
}
+
}