public static function handleException(\Exception $exception) { self::exception($exception); if (self::$errorMail) { self::$errorMail->send($exception); } }