Files
GermanAirlinesVA-GraphQL/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
T
Your Name aae17f10a6 new Deps
2021-07-26 19:46:18 +02: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());
}
}