commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-base
src
Exception
ApiClientException.php
1
<?php
2
3
declare(strict_types=1);
10
namespace
Commercetools\Exception
;
11
12
use
Commercetools\Base\JsonObject
;
13
use GuzzleHttp\Exception\ClientException;
14
use Psr\Http\Message\RequestInterface;
15
use Psr\Http\Message\ResponseInterface;
16
17
class
ApiClientException
extends
ClientException
18
{
23
private
$result;
24
29
public
function
__construct
($message, $result, RequestInterface $request, ResponseInterface $response, \Exception $previous =
null
, array $handlerContext = [])
30
{
31
$this->result = $result;
32
parent::__construct($message, $request, $response, $previous, $handlerContext);
33
}
34
38
public
function
getResult
()
39
{
40
return
$this->result;
41
}
42
}
Commercetools\Exception\ApiClientException
Definition
ApiClientException.php:18
Commercetools\Exception\ApiClientException\__construct
__construct($message, $result, RequestInterface $request, ResponseInterface $response, \Exception $previous=null, array $handlerContext=[])
Definition
ApiClientException.php:29
Commercetools\Exception\ApiClientException\getResult
getResult()
Definition
ApiClientException.php:38
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Exception
Definition
ApiClientException.php:10
Generated by
1.9.8