new Deps
This commit is contained in:
1 parent
e7a49138bb
commit
aae17f10a6
818 files changed
+70693
-16406
No files matched your search
@@ -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