public function errorHandler($errno, $errstr, $errfile, $errline) { $this->_error = $errno; $this->_errorMsg = $errstr; if ($this->_exception) { throw A_Exception::getInstance($this->_exception, $errstr); } }
/** * 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]; }
/** * 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); } }
protected function _errorHandler($errno, $errorMsg) { $this->_error = $errno; $this->_errorMsg[$errno] = $errorMsg; if ($errno && $this->_exception) { throw A_Exception::getInstance($this->_exception, $errorMsg); } }