equal
deleted
inserted
replaced
|
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 /** |
|
13 * Generated when a TransportException is thrown from the Transport system. |
|
14 * @package Swift |
|
15 * @subpackage Events |
|
16 * @author Chris Corbyn |
|
17 */ |
|
18 class Swift_Events_TransportExceptionEvent extends Swift_Events_EventObject |
|
19 { |
|
20 |
|
21 /** |
|
22 * The Exception thrown. |
|
23 * @var Swift_TransportException |
|
24 */ |
|
25 private $_exception; |
|
26 |
|
27 /** |
|
28 * Create a new TransportExceptionEvent for $transport. |
|
29 * @param Swift_Transport $transport |
|
30 * @param Swift_TransportException $ex |
|
31 */ |
|
32 public function __construct(Swift_Transport $transport, |
|
33 Swift_TransportException $ex) |
|
34 { |
|
35 parent::__construct($transport); |
|
36 $this->_exception = $ex; |
|
37 } |
|
38 |
|
39 /** |
|
40 * Get the TransportException thrown. |
|
41 * @return Swift_TransportException |
|
42 */ |
|
43 public function getException() |
|
44 { |
|
45 return $this->_exception; |
|
46 } |
|
47 |
|
48 } |