mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
12 lines
252 B
PHP
12 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());
|
|
}
|
|
}
|