code: public function notifyOnException(Exception $e, $extraParams = null)
      {
          $notice = new Notice;
          $notice->load(array(
              'errorClass'       => get_class($e),
              'backtrace'        => $this->cleanBacktrace($e->getTrace() ?: debug_backtrace()),
              'errorMessage'     => $e->getMessage().' in '.$this->cleanFilePath($e->getFile()).' on line '.$e->getLine(),
              'extraParameters'  => $extraParams,
          ));
  
          return $this->notify($notice);
      }
docs: Notify on an exception
  
  @param Exception $e
  @param null $extraParams
  @return string