PHPMailer\PHPMailer

POP3::setErrorprotectedWP 1.0

Add an error to the internal error store. Also display debug output if it's enabled.

Method of the class: POP3{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->setError( $error );
$error(string) (required)
.

POP3::setError() code WP 6.9

protected function setError($error)
{
    $this->errors[] = $error;
    if ($this->do_debug >= self::DEBUG_SERVER) {
        echo '<pre>';
        foreach ($this->errors as $e) {
            print_r($e);
        }
        echo '</pre>';
    }
}