class Exception

PHPMailer exception handler.

@author Marcus Bointon <phpmailer@synchromedia.co.uk>

Hierarchy

  • class \PHPMailer\PHPMailer\Exception extends \Exception

Expanded class hierarchy of Exception

1 file declares its use of Exception
smtp.module in modules/smtp/smtp.module
This is the main module file for SMTP, which will let us send emails using SMTP instead of PHP's mail() command.

File

inc/PHPMailer/src/Exception.php, line 28

Namespace

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

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
Exception::errorMessage public function Prettify error message output.