Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignitetch
GitHub Repository: ignitetch/advphishing
Path: blob/master/PHPMailer/src/Exception.php
738 views
1
<?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) <[email protected]>
9
* @author Jim Jagielski (jimjag) <[email protected]>
10
* @author Andy Prevost (codeworxtech) <[email protected]>
11
* @author Brent R. Matzelle (original founder)
12
* @copyright 2012 - 2020 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
21
namespace PHPMailer\PHPMailer;
22
23
/**
24
* PHPMailer exception handler.
25
*
26
* @author Marcus Bointon <[email protected]>
27
*/
28
class 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
}
40
41