From fbd8b1f1f5e452061516b30e337d149d86b66098 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 7 Sep 2010 01:28:27 -0600 Subject: [PATCH] More appropriate exception --- imp/lib/Imap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.11.0