File "ApiException.php"
Full Path: /home/cananyalcin/public_html/core/module/client/library/coinbase_api/coinbase/coinbase-commerce/src/Exceptions/ApiException.php
File size: 627 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace CoinbaseCommerce\Exceptions;
class ApiException extends CoinbaseException
{
private $request;
private $response;
public function __construct($message, $request, $response, $previous)
{
parent::__construct($message, $previous->getCode(), $previous);
$this->request = $request;
$this->response = $response;
}
public function getRequest()
{
return $this->request;
}
public function getResponse()
{
return $this->response;
}
public function getStatusCode()
{
return $this->response->getStatusCode();
}
}