PHPMailer\PHPMailer

POP3::catchWarningprotectedWP 1.0

POP3 connection error handler.

Method of the class: POP3{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->catchWarning( $errno, $errstr, $errfile, $errline );
$errno(int) (required)
.
$errstr(string) (required)
.
$errfile(string) (required)
.
$errline(int) (required)
.

POP3::catchWarning() code WP 6.9

protected function catchWarning($errno, $errstr, $errfile, $errline)
{
    $this->setError(
        'Connecting to the POP3 server raised a PHP warning:' .
        "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline"
    );
}