dolibarr/htdocs/includes/swiftmailer/lib/classes/Swift/Events/TransportExceptionEvent.php

44 lines
954 B
PHP
Raw Permalink Normal View History

2016-04-16 16:15:03 +00:00
<?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 Swift_Events_TransportExceptionEvent extends Swift_Events_EventObject
{
/**
* The Exception thrown.
*
* @var Swift_TransportException
*/
2018-01-21 14:55:56 +00:00
private $exception;
2016-04-16 16:15:03 +00:00
/**
* Create a new TransportExceptionEvent for $transport.
*/
public function __construct(Swift_Transport $transport, Swift_TransportException $ex)
{
parent::__construct($transport);
2018-01-21 14:55:56 +00:00
$this->exception = $ex;
2016-04-16 16:15:03 +00:00
}
/**
* Get the TransportException thrown.
*
* @return Swift_TransportException
*/
public function getException()
{
2018-01-21 14:55:56 +00:00
return $this->exception;
2016-04-16 16:15:03 +00:00
}
}