log.warn("Unable to create mail delivery for mail message: " + mailMessage);
}
} catch (EOGeneralAdaptorException ge) {
if ( _warnOnGeneralAdaptorExceptionLockingMessage )
log.warn("Caught general adaptor exception, reverting context. Might be running multiple mailers", ge);
mailMessage.editingContext().revert();
} catch (Throwable e) {
if (e instanceof NSForwardException)
e = ((NSForwardException)e).originalException();
log.warn("Caught exception when sending mail: " + ERXUtilities.stackTrace(e));
log.warn("Message trying to send: " + mailMessage + " pk: " + mailMessage.primaryKey());