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 run() { if (!$this->_actions) { $e = new Varien_Convert_Exception("Could not find any actions for this profile"); $e->setLevel(Varien_Convert_Exception::FATAL); $this->addException($e); return; } foreach ($this->_actions as $action) { $action->run(); } return $this; }
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; }