public function exceptionHandler($exception)
 {
     $error = Wapplogs_Error::fromPHPException($this->config, $this->diagnostics, $exception);
     $error->setSeverity("error");
     if (!$error->shouldIgnore() && $this->config->autoNotify) {
         $this->notify($error);
     }
 }
 public function setPrevious($exception)
 {
     if ($exception) {
         $this->previous = Wapplogs_Error::fromPHPException($this->config, $this->diagnostics, $exception);
     }
     return $this;
 }