You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?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));
|
|
}
|
|
}
|