[ Index ]

MailPress 544

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

title

Body

[close]

/mp-includes/Swiftmailer/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       * @param Swift_Transport          $transport
  29       * @param Swift_TransportException $ex
  30       */
  31      public function __construct(Swift_Transport $transport, Swift_TransportException $ex)
  32      {
  33          parent::__construct($transport);
  34          $this->_exception = $ex;
  35      }
  36  
  37      /**
  38       * Get the TransportException thrown.
  39       *
  40       * @return Swift_TransportException
  41       */
  42      public function getException()
  43      {
  44          return $this->_exception;
  45      }
  46  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1