feature #609 Make LoggerPlugin keep track of the exception's code and previous exception (timewasted)
feature #609 Make LoggerPlugin keep track of the exception's code and previous exception (timewasted)

This PR was merged into the 5.x branch.

Discussion
----------

Make LoggerPlugin keep track of the exception's code and previous exception

When LoggerPlugin catches a thrown exception, it modifies $message, and throws a new Swift_TransportException.  Previously, it only provided $message to the Swift_TransportException constructor.  Now, it will also pass the code and previous exception, so no information will be lost.

Also, it will append the code to the log message.

Commits
-------

92250b0 Make LoggerPlugin keep track of the exception's code and previous exception.

michabbb-backup/swiftmailer,kuslahne/swiftmailer,deguif/swiftmailer,Chhunlong/swiftmailer,swiftmailer/swiftmailer,tweakers-dev/swiftmailer,denpamusic/swiftmailer,gencer/swiftmailer,c960657/swiftmailer,denpamusic/swiftmailer,Rotzbua/swiftmailer,zghosts/swiftmailer,voku/swiftmailer,kuslahne/swiftmailer,michabbb-backup/swiftmailer,fvosberg/swiftmailer,Dubz/swiftmailer,Dubz/swiftmailer,voku/swiftmailer,zghosts/swiftmailer,jamesggordon/swiftmailer,robertklein/swiftmailer,handautsav/swiftmailer,swiftmailer/swiftmailer,papagel/swiftmailer,c960657/swiftmailer,fvosberg/swiftmailer,robertklein/swiftmailer,papagel/swiftmailer,Rotzbua/swiftmailer,tweakers-dev/swiftmailer,jamesggordon/swiftmailer,Chhunlong/swiftmailer,gencer/swiftmailer,deguif/swiftmailer,handautsav/swiftmailer