mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-11 14:14:10 +02:00
3fd7856543
* move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries
16 lines
290 B
PHP
16 lines
290 B
PHP
<?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));
|
|
}
|
|
}
|