Exemplo n.º 1
0
 /**
  * Handles an error
  *
  * @param \r8\iface\Error $error The error to handle
  * @return NULL
  */
 public function handle(\r8\iface\Error $error)
 {
     $display = strtolower(ini_get('display_errors'));
     if ($display == "1" || $display == "on") {
         $this->handler->handle($error);
     }
 }
Exemplo n.º 2
0
 /**
  * Handles an error
  *
  * @param \r8\iface\Error $error The error to handle
  * @return NULL
  */
 public function handle(\r8\iface\Error $error)
 {
     if ($this->handler) {
         $this->handler->handle($error);
     }
     throw new \ErrorException($error->getMessage(), $error->getCode(), $error->getCode(), $error->getFile(), $error->getLine());
 }