/** * Force the error display and log it * @return void */ public function render() { $exception_context = array('type' => get_called_class(), 'code' => $this->getCode(), 'message' => $this->getMessage(), 'line' => $this->getLine(), 'file' => $this->getFile()); $this->webservices->log($this->webservices->getOption('error_log_mask'), $exception_context, Logger::ERROR); $this->webservices->getResponse()->addContent('error', $exception_context); $this->webservices->display(); }
/** * Force the error display and log it * * @return void */ public function render() { $exception_context = array('type' => get_called_class(), 'code' => $this->getCode() . ' [severity: ' . $this->getSeverity() . ']', 'message' => $this->getMessage(), 'line' => $this->getLine(), 'file' => $this->getFile()); $this->webservices->log($this->webservices->getOption('error_log_mask'), $exception_context, Logger::CRITICAL); $this->webservices->log($this->getTraceAsString(), array(), Logger::CRITICAL); $this->webservices->getResponse()->addContent('error', $exception_context); $this->webservices->display(); }