PHPMailer\PHPMailer

Exception::errorMessage()publicWP 1.0

Prettify error message output.

Method of the class: Exception{}

No Hooks.

Return

String.

Usage

$Exception = new Exception();
$Exception->errorMessage();

Exception::errorMessage() code WP 6.5.4

public function errorMessage()
{
    return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
}