Package org.masukomi.aspirin.core.delivery

Examples of org.masukomi.aspirin.core.delivery.DeliveryException


             * email later.
             */
      if( targetServers == null || targetServers.size() == 0 )
            {
                AspirinInternal.getLogger().warn("ResolveHost.handle(): No mail server found for: '{}'.",new Object[]{host});
                throw new DeliveryException("No MX record found. Temporary failure, trying again.", false);
            }
             AspirinInternal.getLogger().trace("ResolveHost.handle(): {} servers found for '{}'.",new Object[]{targetServers.size(),host});
             dCtx.addContextVariable("targetservers", targetServers);
    } catch( DeliveryException de ) {
      throw de;
    } catch (Exception e) {
      AspirinInternal.getLogger().error("ResolveHost.handle(): Could not get MX for host '"+host+"' defined by recipient '"+currentRecipient+"'.",e);
      throw new DeliveryException("No MX record found. Temporary failure, trying again.", false);
    }

  }
View Full Code Here

TOP

Related Classes of org.masukomi.aspirin.core.delivery.DeliveryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.