Files
b2b.redline.com.pl/modules/newsletterpro/libraries/swift/classes/Swift/Events/TransportExceptionEvent.php
2025-06-24 14:14:35 +02:00

47 lines
1.1 KiB
PHP

<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Generated when a TransportException is thrown from the Transport system.
*
* @author Chris Corbyn
*/
class NewsletterPro_Swift_Events_TransportExceptionEvent extends NewsletterPro_Swift_Events_EventObject
{
/**
* The Exception thrown.
*
* @var NewsletterPro_Swift_TransportException
*/
private $_exception;
/**
* Create a new TransportExceptionEvent for $transport.
*
* @param NewsletterPro_Swift_Transport $transport
* @param NewsletterPro_Swift_TransportException $ex
*/
public function __construct(NewsletterPro_Swift_Transport $transport, NewsletterPro_Swift_TransportException $ex)
{
parent::__construct($transport);
$this->_exception = $ex;
}
/**
* Get the TransportException thrown.
*
* @return NewsletterPro_Swift_TransportException
*/
public function getException()
{
return $this->_exception;
}
}