Files
arif_grafin/pma/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
dev@siliconpin.com a3067c5ad4 first commit
2025-08-07 11:53:41 +05:30

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));
}
}