commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ApiClientException.php
1<?php
2
3declare(strict_types=1);
11
13use GuzzleHttp\Exception\ClientException;
14use Psr\Http\Message\RequestInterface;
15use Psr\Http\Message\ResponseInterface;
16
17class 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}
__construct($message, $result, RequestInterface $request, ResponseInterface $response, \Exception $previous=null, array $handlerContext=[])