# defender-security/5.7.2/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.7.2. 12 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.7.2/code/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.7.2/raw/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.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.7.2/code/vendor/thecodingmachine/safe/generated/Exceptions/Bzip2Exception.php#L10-L20`.

```php
<?php
namespace Safe\Exceptions;

class Bzip2Exception extends \ErrorException implements SafeExceptionInterface
{
    public static function createFromPhpError(): self
    {
        $error = error_get_last();
        return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
    }
}

```
