private function handleError($exception)
    {
        if ($this->errorCallback !== null) {
            $callback = $this->errorCallback;
            $callback($exception);
        }
    }
private function handleError($exception)
    {
        if ($this->errorCallback !== null) {
            $callback = $this->errorCallback;
            $callback($exception);
        }
    }
private function handleError ( $ exception ) { if ( $ this -> errorCallback !== null ) { $ callback = $ this -> errorCallback ; $ callback ( $ exception ) ; } }
Executes the registered error callback.

@param \Throwable $exception
Executes the registered error callback .