* @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);