1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Signifyd\Model\SignifydGateway;
/**
* Exception of interaction with Signifyd API
*/
class ApiCallException extends GatewayException
{
/**
* @var string
*/
private $requestData;
/**
* ApiCallException constructor.
* @param string $message
* @param int $code
* @param \Exception|null $previous
* @param string $requestData in JSON format
*/
public function __construct($message = '', $code = 0, \Exception $previous = null, $requestData = '')
{
$this->requestData = $requestData;
parent::__construct($message, $code, $previous);
}
/**
* Gets request data for unsuccessful request in JSON format
* @return string
*/
public function getRequestData()
{
return $this->requestData;
}
}