Files
accounting_dev_v2/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
T
2026-09-11 16:03:00 +07:00

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());
}
}