blob: 2814066b0c37ea2cdda92af456ef703ba03658be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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));
}
}
|