Exception.php

Namespace

PHPMailer\PHPMailer

File

inc/PHPMailer/src/Exception.php
View source
  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) <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. namespace PHPMailer\PHPMailer;
  21. /**
  22. * PHPMailer exception handler.
  23. *
  24. * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
  25. */
  26. class Exception extends \Exception
  27. {
  28. /**
  29. * Prettify error message output.
  30. *
  31. * @return string
  32. */
  33. public function errorMessage()
  34. {
  35. return '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
  36. }
  37. }

Classes

Namesort descending Description
Exception PHPMailer exception handler.