commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ApiServerException.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Exception;
11 
13 use GuzzleHttp\Exception\ServerException;
14 use Psr\Http\Message\RequestInterface;
15 use Psr\Http\Message\ResponseInterface;
16 
17 class ApiServerException extends ServerException
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=[])