From: Michael M Slusarz Date: Tue, 7 Sep 2010 07:28:27 +0000 (-0600) Subject: More appropriate exception X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fbd8b1f1f5e452061516b30e337d149d86b66098;p=horde.git More appropriate exception --- diff --git a/imp/lib/Imap.php b/imp/lib/Imap.php index bcdbdd84b..b42b93c4c 100644 --- a/imp/lib/Imap.php +++ b/imp/lib/Imap.php @@ -398,12 +398,12 @@ class IMP_Imap * @param array $params Method Parameters. * * @return mixed The return from the requested method. - * @throws IMP_Exception + * @throws BadMethodCallException */ public function __call($method, $params) { if (!$this->ob || !method_exists($this->ob, $method)) { - throw new IMP_Exception(sprintf('%s: Invalid method call "%s".', __CLASS__, $method)); + throw new BadMethodCallException(sprintf('%s: Invalid method call "%s".', __CLASS__, $method)); } return call_user_func_array(array($this->ob, $method), $params);