Throw Horde_Exception here instead of Exception.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 26 Feb 2009 04:59:30 +0000 (21:59 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 26 Feb 2009 04:59:30 +0000 (21:59 -0700)
imp/acl.php
imp/lib/IMAP/ACL.php

index 88df998..c6ce06a 100644 (file)
@@ -24,7 +24,7 @@ if ($prefs->isLocked('acl') || empty($_SESSION['imp']['acl'])) {
 
 try {
     $ACLDriver = &IMP_IMAP_ACL::singleton();
-} catch (Exception $e) {
+} catch (Horde_Exception $e) {
     $notification->push($error, _("This server does not support sharing folders."));
     header('Location: ' . $prefs_url);
     exit;
index 7b10824..ca800a8 100644 (file)
@@ -56,12 +56,12 @@ class IMP_IMAP_ACL
     protected function __construct()
     {
         if ($_SESSION['imp']['protocol'] != 'imap') {
-            throw new Exception(_("ACL requires an IMAP server."));
+            throw new Horde_Exception(_("ACL requires an IMAP server."));
         }
 
         $capability = $GLOBALS['imp_imap']->ob->queryCapability('ACL');
         if (!$capability) {
-            throw new Exception(_("IMAP server does not support ACLs."));
+            throw new Horde_Exception(_("IMAP server does not support ACLs."));
         }
 
         $rfc4314 = $GLOBALS['imp_imap']->ob->queryCapability('RIGHTS');