Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/thecodingmachine/safe/lib/Exceptions/
Upload File :
Current File : /var/www/clients/client3/web2/web/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));
    }
}