commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
$
a
d
e
f
g
o
r
s
t
u
•
All
Classes
Namespaces
Functions
Variables
Pages
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
}
29
public
function
__construct
($message, $result, RequestInterface $request, ResponseInterface $response, ?\Exception $previous =
null
, array $handlerContext = []) {
…
}
34
38
public
function
getResult
()
39
{
40
return
$this->result;
41
}
38
public
function
getResult
() {
…
}
42
}
17
class
ApiClientException
extends
ClientException {
…
};
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