laipower/wp-content/plugins/wp-webauthn/wp-webauthn-vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php

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