예제 #1
0
 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;
 }
예제 #2
0
 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;
 }