Package com.agiletec.aps.system.exception

Examples of com.agiletec.aps.system.exception.ApsSystemException


    try {
      String mailAddress = this.getNewsletterDAO().getAddressFromToken(token);
      return mailAddress;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getAddressFromToken");
      throw new ApsSystemException("Error loading address from token", t);
    }
  }
View Full Code Here


      EntitySearchFilter filterByEmail = new EntitySearchFilter(emailAttributeName, true, mailAddress, true);
      EntitySearchFilter[] filters = {filterByEmail};
      usernames = ((IEntityManager) this.getProfileManager()).searchId(filters);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "isAlreadyAnUser");
      throw new ApsSystemException("Errore ricerca indirizzo e-mail tra gli utenti registrati", t);
    }
    return (null != usernames && usernames.size() > 0);
  }
View Full Code Here

      EmailSenderThread thread = new EmailSenderThread(mailAddress, token, this);
      thread.setName(JpnewsletterSystemConstants.EMAIL_SENDER_NAME_THREAD_PREFIX + System.currentTimeMillis());
      thread.start();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "sendMail");
      throw new ApsSystemException("errore in invio email", t);
    }
  }
View Full Code Here

      } else {
        ApsSystemUtils.getLogger().warn("Incomplete configuration for newsletter subscribers! CHECK " + JpnewsletterSystemConstants.NEWSLETTER_CONFIG_ITEM + " item!!");
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "sendMail");
      throw new ApsSystemException("Error sending email for subscription confirmation request to address " + mailAddress, t);
    }
  }
View Full Code Here

    try {
      Document doc = builder.build(reader);
      root = doc.getRootElement();
    } catch (Throwable t) {
      ApsSystemUtils.getLogger().error("Error parsing xml: " + t.getMessage());
      throw new ApsSystemException("Error parsing xml", t);
    }
    return root;
  }
View Full Code Here

  private void loadConfigs() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem(JpmailSystemConstants.MAIL_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpmailSystemConstants.MAIL_CONFIG_ITEM);
      }
      MailConfigDOM configDOM = new MailConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore in fase di inizializzazione", t);
    }
  }
View Full Code Here

  public MailConfig getMailConfig() throws ApsSystemException {
    try {
      return (MailConfig) this._config.clone();
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getMailConfig");
      throw new ApsSystemException("Error loading mail service configuration", t);
    }
  }
View Full Code Here

      String xml = new MailConfigDOM().createConfigXml(config);
      this.getConfigManager().updateConfigItem(JpmailSystemConstants.MAIL_CONFIG_ITEM, xml);
      this.setConfig(config);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateMailConfig");
      throw new ApsSystemException("Errore in fase di aggiornamento configurazione mail", t);
    }
  }
View Full Code Here

        msg.setContent(multiPart);
      }
      msg.saveChanges();
      bus.send(msg);
    } catch (Throwable t) {
      throw new ApsSystemException("Errore in spedizione mail", t);
    } finally {
      closeTransport(bus);
    }
    return true;
  }
View Full Code Here

      }
      msg.setContent(multiPart);
      msg.saveChanges();
      bus.send(msg);
    } catch (Throwable t) {
      throw new ApsSystemException("Errore in spedizione mail", t);
    } finally {
      closeTransport(bus);
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.exception.ApsSystemException

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.