PHPMailer\PHPMailer

Exception{}WP 1.0

PHPMailer exception handler.

Хуков нет.

Использование

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

Методы

  1. ERROR: no method name found on line `}`
  2. public errorMessage()
  3. ERROR: no method name found on line ``
  4. ERROR: no method name found on line ``

Код Exception{} WP 6.5.2

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";
    }
}