HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/public/phpmyadmin/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.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));
    }
}