first commit
This commit is contained in:
15
pma/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
vendored
Normal file
15
pma/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user