HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/tools/swift/Swift/Exception.php
<?php

/**
 * Swift Mailer Logging Layer Interface
 * Please read the LICENSE file
 * @author Chris Corbyn <chris@w3style.co.uk>
 * @package Swift_Log
 * @license GNU Lesser General Public License
 */

require_once dirname(__FILE__) . "/ClassLoader.php";
Swift_ClassLoader::load("Swift_LogContainer");

/**
 * The Logger Interface
 * @package Swift_Log
 * @author Chris Corbyn <chris@w3style.co.uk>
 */
class Swift_Exception extends Exception
{
  /**
   * Constructor.
   * Creates the exception and appends log information if available.
   * @param string Message
   * @param int Code
   */
  public function __construct($message, $code = 0)
  {
    if (($log = Swift_LogContainer::getLog()) && $log->isEnabled())
    {
      $message .= "<h3>Log Information</h3>";
      $message .= "<pre>" . htmlentities($log->dump(true)) . "</pre>";
    }
    parent::__construct($message, $code);
  }
}