public function addException($error, $level = null) { $e = new Varien_Convert_Exception($error); $e->setLevel(!is_null($level) ? $level : Varien_Convert_Exception::NOTICE); $e->setContainer($this); $e->setPosition($this->getPosition()); if ($this->getProfile()) { $this->getProfile()->addException($e); } return $e; }
public function addException($error, $level = null) { $exception = new Varien_Convert_Exception($error); $exception->setLevel(!is_null($level) ? $level : Varien_Convert_Exception::NOTICE); $exception->setContainer($this); $exception->setPosition($this->getPosition()); return $exception; }