Swift_Events_TransportExceptionEvent::getException PHP Méthode

getException() public méthode

Get the TransportException thrown.
public getException ( ) : Swift_TransportException
Résultat Swift_TransportException
    public function getException()
    {
        return $this->_exception;
    }

Usage Example

 /**
  * Invoked as a TransportException is thrown in the Transport system.
  *
  * @param \Swift_Events_TransportExceptionEvent $evt
  * @throws \Swift_TransportException
  */
 public function exceptionThrown(\Swift_Events_TransportExceptionEvent $evt)
 {
     $evt->cancelBubble(true);
     try {
         throw $evt->getException();
     } catch (\Swift_TransportException $e) {
         throw new MailException($e->getMessage(), 'warning');
     }
 }
All Usage Examples Of Swift_Events_TransportExceptionEvent::getException
Swift_Events_TransportExceptionEvent