Esempio n. 1
0
 public function errorHandler($errno, $errstr, $errfile, $errline)
 {
     $this->_error = $errno;
     $this->_errorMsg = $errstr;
     if ($this->_exception) {
         throw A_Exception::getInstance($this->_exception, $errstr);
     }
 }
Esempio n. 2
0
 /**
  * Get the specified regisetered component
  *
  * @param string $component Component name to get
  */
 public function component($component)
 {
     if (!isset($this->components[$component])) {
         if ($this->component('Config')->useExceptions) {
             throw A_Exception::getInstance($this->exception, 'Component "' . $component . ' does not exist in stack"');
         }
         return false;
     }
     return $this->components[$component];
 }
Esempio n. 3
0
 /**
  * Creates and throws an exception of the defined type
  *
  * @param int $errno
  * @param string $errorMsg
  */
 private function _errorHandler($errno, $errorMsg)
 {
     $this->_errorMsg .= $errorMsg;
     if ($this->_exception) {
         throw A_Exception::getInstance($this->_exception, $errorMsg);
     }
 }
Esempio n. 4
0
 protected function _errorHandler($errno, $errorMsg)
 {
     $this->_error = $errno;
     $this->_errorMsg[$errno] = $errorMsg;
     if ($errno && $this->_exception) {
         throw A_Exception::getInstance($this->_exception, $errorMsg);
     }
 }