mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
12 lines
250 B
PHP
12 lines
250 B
PHP
<?php
|
|
|
|
|
|
namespace Safe\Exceptions;
|
|
|
|
class JsonException extends \Exception implements SafeExceptionInterface
|
|
{
|
|
public static function createFromPhpError(): self
|
|
{
|
|
return new static(\json_last_error_msg(), \json_last_error());
|
|
}
|
|
}
|