You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
248 B
PHTML
13 lines
248 B
PHTML
4 years ago
|
<?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());
|
||
|
}
|
||
|
}
|