laipower/wp-content/plugins/wp-webauthn/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php

13 lines
248 B
PHP
Raw Normal View History

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