|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 //@require 'Swift/Events/EventObject.php'; 00012 //@require 'Swift/TransportException.php'; 00013 00014 /** 00015 * Generated when a TransportException is thrown from the Transport system. 00016 * @package Swift 00017 * @subpackage Events 00018 * @author Chris Corbyn 00019 */ 00020 class Swift_Events_TransportExceptionEvent extends Swift_Events_EventObject 00021 { 00022 00023 /** 00024 * The Exception thrown. 00025 * @var Swift_TransportException 00026 */ 00027 private $_exception; 00028 00029 /** 00030 * Create a new TransportExceptionEvent for $transport. 00031 * @param Swift_Transport $transport 00032 * @param Swift_TransportException $ex 00033 */ 00034 public function __construct(Swift_Transport $transport, 00035 Swift_TransportException $ex) 00036 { 00037 parent::__construct($transport); 00038 $this->_exception = $ex; 00039 } 00040 00041 /** 00042 * Get the TransportException thrown. 00043 * @return Swift_TransportException 00044 */ 00045 public function getException() 00046 { 00047 return $this->_exception; 00048 } 00049 00050 }
1.8.0