lib/Loop/Driver.php
protected function error(\Throwable $exception)
    {
        if ($this->errorHandler === null) {
            throw $exception;
        }

        ($this->errorHandler)($exception);
    }
protected function error(\Throwable $exception)
    {
        if ($this->errorHandler === null) {
            throw $exception;
        }

        ($this->errorHandler)($exception);
    }
protected function error ( \ Throwable $ exception ) { if ( $ this -> errorHandler === null ) { throw $ exception ; } ( $ this -> errorHandler ) ( $ exception ) ; }
Invokes the error handler with the given exception.

@param \Throwable $exception The exception thrown from a watcher callback.

@throws \Throwable If no error handler has been set.
Invokes the error handler with the given exception .