From d28a798f642601b4ff1fc12b000f39ebc8e67e1d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sat, 4 Sep 2010 02:16:03 -0600 Subject: [PATCH] This is a programming error, not a run-time error --- framework/Imap_Client/lib/Horde/Imap/Client/Base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 6c0ea6450..3c6d4bf3a 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -109,11 +109,12 @@ abstract class Horde_Imap_Client_Base implements Serializable * See Horde_Imap_Client::factory(). * * @throws Horde_Imap_Client_Exception + * @throws InvalidArgumentException */ public function __construct(array $params = array()) { if (!isset($params['username']) || !isset($params['password'])) { - throw new Horde_Imap_Client_Exception('Horde_Imap_Client requires a username and password.'); + throw new InvalidArgumentException('Horde_Imap_Client requires a username and password.'); } // Encrypt password. -- 2.11.0