1: | <?php |
2: | /* |
3: | * This class was auto-generated from the API references found at |
4: | * https://apireference.connect.worldline-solutions.com/ |
5: | */ |
6: | namespace Worldline\Connect\Sdk\V1; |
7: | |
8: | use Worldline\Connect\Sdk\Domain\DataObject; |
9: | |
10: | /** |
11: | * Class ApiException |
12: | * |
13: | * @package Worldline\Connect\Sdk\V1 |
14: | */ |
15: | class ApiException extends ResponseException |
16: | { |
17: | /** |
18: | * @param int $httpStatusCode |
19: | * @param DataObject $response |
20: | * @param string $message |
21: | */ |
22: | public function __construct($httpStatusCode, DataObject $response, $message = null) |
23: | { |
24: | if (is_null($message)) { |
25: | $message = 'the Worldline Global Collect platform returned an error response'; |
26: | } |
27: | parent::__construct($httpStatusCode, $response, $message); |
28: | } |
29: | } |
30: |