Swift_Transport_AbstractSmtpTransport::_throwException PHP Method

_throwException() protected method

Throw a TransportException, first sending it to any listeners
protected _throwException ( Swift_TransportException $e )
$e Swift_TransportException
    protected function _throwException(Swift_TransportException $e)
    {
        if ($evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e)) {
            $this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown');
            if (!$evt->bubbleCancelled()) {
                throw $e;
            }
        } else {
            throw $e;
        }
    }