WordPress at a glance
function is not described

PHPMailer\PHPMailer

Exception::errorMessage() public WP 1.0

Prettify error message output.

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

No Hooks.

Return

String.

Usage

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

Code of Exception::errorMessage() WP 5.7.2

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