WordPress at a glance
class is not described

PHPMailer\PHPMailer

Exception{} WP 1.0

PHPMailer exception handler.

No Hooks.

Return

null. Nothing.

Usage

$Exception = new Exception();
// use class methods

Methods

  1. errorMessage()

Code of Exception{} WP 5.7.2

<?php
class Exception extends \Exception
{
    /**
     * Prettify error message output.
     *
     * @return string
     */
    public function errorMessage()
    {
        return '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
    }
}