Your IP : 216.73.216.158


Current Path : /home/rtorresani/www/vendor/thecodingmachine/safe/lib/Exceptions/
Upload File :
Current File : //home/rtorresani/www/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php

<?php


namespace Safe\Exceptions;

class CurlException extends \Exception implements SafeExceptionInterface
{
    /**
     * @param \CurlHandle $ch
     */
    public static function createFromPhpError($ch = null): self
    {
        return new self($ch ? \curl_error($ch) : '', $ch ? \curl_errno($ch) : 0);
    }
}