1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | namespace Worldline\Connect\Sdk\V1; |
7: | |
8: | use Worldline\Connect\Sdk\Domain\DataObject; |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | class AuthorizationException extends ResponseException |
16: | { |
17: | |
18: | |
19: | |
20: | |
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 authorization error response'; |
26: | } |
27: | parent::__construct($httpStatusCode, $response, $message); |
28: | } |
29: | } |
30: | |