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
13 lines
248 B
PHP
13 lines
248 B
PHP
<?php
|
|
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class JsonException extends \Exception implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
return new self(\json_last_error_msg(), \json_last_error());
|
|
}
|
|
}
|