src/Airbrake/Client.php
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);
    }
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);
    }
Notify on an exception

@param Exception $e
@param null $extraParams
@return string