# defender-security/6.3.0/lib/packages/Safe/generated/Exceptions/ImapException.php

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

- Page: https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Safe/generated/Exceptions/ImapException.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.3.0/raw/lib/packages/Safe/generated/Exceptions/ImapException.php
- Modified: 2026-08-24T08:19:12+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/6.3.0/code/lib/packages/Safe/generated/Exceptions/ImapException.php#L10-L20`.

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

class ImapException 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);
    }
}

```
