# defender-security/5.4.0/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.4.0. 13 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.4.0/code/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.4.0/raw/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
- Modified: 2022-06-13T09:01:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/5.4.0/code/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php#L10-L20`.

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

```
