[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/composer/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/ -> TransportExceptionEvent.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of SwiftMailer.
   5   * (c) 2004-2009 Chris Corbyn
   6   *
   7   * For the full copyright and license information, please view the LICENSE
   8   * file that was distributed with this source code.
   9   */
  10  
  11  /**
  12   * Generated when a TransportException is thrown from the Transport system.
  13   *
  14   * @author Chris Corbyn
  15   */
  16  class Swift_Events_TransportExceptionEvent extends Swift_Events_EventObject
  17  {
  18      /**
  19       * The Exception thrown.
  20       *
  21       * @var Swift_TransportException
  22       */
  23      private $exception;
  24  
  25      /**
  26       * Create a new TransportExceptionEvent for $transport.
  27       */
  28      public function __construct(Swift_Transport $transport, Swift_TransportException $ex)
  29      {
  30          parent::__construct($transport);
  31          $this->exception = $ex;
  32      }
  33  
  34      /**
  35       * Get the TransportException thrown.
  36       *
  37       * @return Swift_TransportException
  38       */
  39      public function getException()
  40      {
  41          return $this->exception;
  42      }
  43  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1