blob: b1e552f50b7c917eac1ed00ff511e15b6bd318e6 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2/**
3 * PHPMailer Exception class.
4 * PHP Version 5.5.
5 *
6 * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
7 *
8 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
9 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>
10 * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
11 * @author Brent R. Matzelle (original founder)
12 * @copyright 2012 - 2017 Marcus Bointon
13 * @copyright 2010 - 2012 Jim Jagielski
14 * @copyright 2004 - 2009 Andy Prevost
15 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
16 * @note This program is distributed in the hope that it will be useful - WITHOUT
17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE.
19 */
20
21namespace PHPMailer\PHPMailer;
22
23/**
24 * PHPMailer exception handler.
25 *
26 * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
27 */
28class Exception extends \Exception
29{
30 /**
31 * Prettify error message output.
32 *
33 * @return string
34 */
35 public function errorMessage()
36 {
37 return '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
38 }
39}