Segment_Consumer::handleError PHP Method

handleError() protected method

On an error, try and call the error handler, if debugging output to error_log as well.
protected handleError ( string $code, string $msg )
$code string
$msg string
    protected function handleError($code, $msg)
    {
        if (isset($this->options['error_handler'])) {
            $handler = $this->options['error_handler'];
            $handler($code, $msg);
        }
        if ($this->debug()) {
            error_log("[Analytics][" . $this->type . "] " . $msg);
        }
    }