src/Client/Traits/RequestBuilderTrait.php
protected function createRequest($service, $requestId, array $parameters = [])
    {
        try {
            return $this->factory()->create($service, $requestId, $parameters);
        } catch (RuntimeException $exception) {
            $this->logBuildError($service, $requestId, $exception);
            throw $exception;
        } catch (\Exception $exception) {
            $this->logBuildError($service, $requestId, $exception);
            throw new RequestBuildException($exception);
        }
    }
protected function createRequest($service, $requestId, array $parameters = [])
    {
        try {
            return $this->factory()->create($service, $requestId, $parameters);
        } catch (RuntimeException $exception) {
            $this->logBuildError($service, $requestId, $exception);
            throw $exception;
        } catch (\Exception $exception) {
            $this->logBuildError($service, $requestId, $exception);
            throw new RequestBuildException($exception);
        }
    }
protected function createRequest ( $ service , $ requestId , array $ parameters = [ ] ) { try { return $ this -> factory ( ) -> create ( $ service , $ requestId , $ parameters ) ; } catch ( RuntimeException $ exception ) { $ this -> logBuildError ( $ service , $ requestId , $ exception ) ; throw $ exception ; } catch ( \ Exception $ exception ) { $ this -> logBuildError ( $ service , $ requestId , $ exception ) ; throw new RequestBuildException ( $ exception ) ; } }
Builds a request

@param string $service
@param string $requestId
@param array  $parameters

@return Request

@throws RequestBuildException
@throws RuntimeException
Builds a request