for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/shopify-api-php
*
* (c) Slince <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Slince\Shopify\Exception;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
class ClientException extends RuntimeException
{
/**
* @var RequestInterface
protected $request;
* @var ResponseInterface
protected $response;
public function __construct(RequestInterface $request, ResponseInterface $response = null, $message = '', $code = 0)
$this->request = $request;
$this->response = $response;
parent::__construct($message, $code);
}
* Gets the request.
* @return RequestInterface
public function getRequest()
return $this->request;
* Gets the response.
* @return ResponseInterface
public function getResponse()
return $this->response;