protected function createException(GuzzleRequestException $exception): RequestException
    {
        if ($exception instanceof GuzzleResponseException) {
            return new ResponseException(
                $exception->getRequest(),
                $exception->getResponse(),
                $exception
            );
        }

        throw new RequestException(
            $exception->getRequest(),
            $exception
        );
    }
protected function createException(GuzzleRequestException $exception): RequestException
    {
        if ($exception instanceof GuzzleResponseException) {
            return new ResponseException(
                $exception->getRequest(),
                $exception->getResponse(),
                $exception
            );
        }

        throw new RequestException(
            $exception->getRequest(),
            $exception
        );
    }
protected function createException ( GuzzleRequestException $ exception ) : RequestException { if ( $ exception instanceof GuzzleResponseException ) { return new ResponseException ( $ exception -> getRequest ( ) , $ exception -> getResponse ( ) , $ exception ) ; } throw new RequestException ( $ exception -> getRequest ( ) , $ exception ) ; }
Create HTTP-Client RequestException by a Guzzle exception

@param  GuzzleRequestException $exception
@return RequestException
Create HTTP - Client RequestException by a Guzzle exception