public function handle(Throwable $exception) : void
    {
        foreach ($this->handlers as $handler) {
            $result = $handler($exception);

            if ($result instanceof Throwable) {
                $exception = $result;
            }
        }

        throw $exception;
    }
public function handle(Throwable $exception) : void
    {
        foreach ($this->handlers as $handler) {
            $result = $handler($exception);

            if ($result instanceof Throwable) {
                $exception = $result;
            }
        }

        throw $exception;
    }
public function handle ( Throwable $ exception ) : void { foreach ( $ this -> handlers as $ handler ) { $ result = $ handler ( $ exception ) ; if ( $ result instanceof Throwable ) { $ exception = $ result ; } } throw $ exception ; }
Handles exception.

@param \Throwable $exception

@return void
Handles exception .