| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/vendor/gambio-hub/hubpublic/src/Exceptions/ |
Upload File : |
<?php
namespace HubPublic\Exceptions;
/**
* Class CurlRequestException
*
* This exception gets thrown by \HubPublic\Http\CurlRequest
*
* @package HubPublic\Exceptions
*/
class CurlRequestException extends HubWarningException
{
/**
* cURL information as returned by curl_getinfo()
*
* @var array
*/
protected $curlInfo;
/**
* CurlRequestException constructor.
*
* @param string $message The Exception message to throw.
* @param array|false $curlInfo The cURL information array, retrieved with "curl_getinfo".
*/
public function __construct($message, $curlInfo)
{
$this->curlInfo = $curlInfo ?: [];
parent::__construct($message);
}
/**
* Returns detailed information regarding the outcome of a cURL request
*
* @return array of cURL data or empty array if unavailable
*/
public function getCurlInfo()
{
return $this->curlInfo;
}
}