WordPress at a glance
function is not described

PHPMailer\PHPMailer

SMTP::getError() public WP 1.0

Get the latest error.

{} It's a method of the class: SMTP{}

No Hooks.

Return

Array. Nothing.

Usage

$SMTP = new SMTP();
$SMTP->getError();

Code of SMTP::getError() WP 5.7.2

<?php
public function getError()
{
    return $this->error;
}