# defender-security/5.7.0/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.7.0. 16 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.7.0/code/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.7.0/raw/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
- Modified: 2022-06-13T09:01:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/5.7.0/code/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php#L10-L20`.

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

```
