Beispiel #1
0
 static function safeMarkRead($NotifID, $action = null)
 {
     try {
         Notifications::markRead($NotifID, $action);
     } catch (ServerConnectionFailureException $e) {
         error_log("Notification server down!\n" . $e->getMessage());
         Response::fail('Notification server is down! Please <a class="send-feedback">let us know</a>.');
     } catch (\Exception $e) {
         error_log("SocketEvent Error\n" . $e->getMessage());
         Response::fail('SocketEvent Error: ' . $e->getMessage());
     }
 }