Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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