Files
citrus-cms/mysql/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
T
2026-04-28 21:15:09 +03:00

16 lines
290 B
PHP

<?php
namespace Safe\Exceptions;
class CurlException extends \Exception implements SafeExceptionInterface
{
/**
* @param resource $ch
*/
public static function createFromCurlResource($ch): self
{
return new self(\curl_error($ch), \curl_errno($ch));
}
}