PHPMailer\PHPMailer

Exception{}WP 1.0

PHPMailer exception handler.

No Hooks.

Usage

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

Methods

  1. public errorMessage()

Exception{} code WP 6.1.1

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