aboutsummaryrefslogtreecommitdiff
path: root/Html/classes/phpmailer/exception.php
blob: 9a4b84643d3e24678b872024bf465f1a4b84b17a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * PHPMailer exception handler
 * @package PHPMailer
 */

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