mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-07 13:40:53 +02:00
13 lines
252 B
PHP
13 lines
252 B
PHP
<?php
|
|
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class JsonException extends \JsonException implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
return new self(\json_last_error_msg(), \json_last_error());
|
|
}
|
|
}
|