11 lines
281 B
PHP
11 lines
281 B
PHP
|
<?php
|
||
|
if (!class_exists('CurlException')) {
|
||
|
class CurlException extends \RuntimeException
|
||
|
{
|
||
|
public function __construct($curlMessage, $errorCode)
|
||
|
{
|
||
|
parent::__construct('Error making request with curl_error: ' . $curlMessage, $errorCode);
|
||
|
}
|
||
|
}
|
||
|
}
|