mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 01:22:23 -04:00
15 lines
269 B
PHP
15 lines
269 B
PHP
<?php
|
|
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class CurlException extends AbstractSafeException
|
|
{
|
|
/**
|
|
* @param resource $ch
|
|
*/
|
|
public static function createFromCurlResource($ch): self
|
|
{
|
|
return new static(\curl_error($ch), \curl_errno($ch));
|
|
}
|
|
}
|