Package com.agiletec.aps.system.exception

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


        config.setTrashFolderName(folderElem.getChildText(FOLDER_TRASH_CHILD));
        config.setSentFolderName(folderElem.getChildText(FOLDER_SENT_CHILD));
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "extractConfig");
      throw new ApsSystemException("Error extracting config", t);
    }
    return config;
  }
View Full Code Here


      sentFolderElem.addContent(config.getSentFolderName());
      folderElem.addContent(sentFolderElem);
      root.addContent(folderElem);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "createConfigXml");
      throw new ApsSystemException("Error creating config", t);
    }
    Document doc = new Document(root);
    XMLOutputter out = new XMLOutputter();
    Format format = Format.getPrettyFormat();
    format.setIndent("\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(JpcontentfeedbackSystemConstants.GLOBAL_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpcontentfeedbackSystemConstants.GLOBAL_CONFIG_ITEM);
      }
      this.setConfig(new ContentFeedbackConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore loading config", t);
    }
  }
View Full Code Here

      String xml = config.toXML();
      this.getConfigManager().updateConfigItem(JpcontentfeedbackSystemConstants.GLOBAL_CONFIG_ITEM, xml);
      this.setConfig(config);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateConfig");
      throw new ApsSystemException("Error updating ContentFeedback config", 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

            jaxbMessageType = new JAXBMessageType(masterMessageType);
        } catch (ApiException ae) {
            throw ae;
        } catch (Throwable t) {
            ApsSystemUtils.logThrowable(t, this, "getMessageType");
            throw new ApsSystemException("Error extracting message type", t);
        }
        return jaxbMessageType;
    }
View Full Code Here

        } catch (ApiException ae) {
            response.addErrors(ae.getErrors());
            response.setResult(IResponseBuilder.FAILURE, null);
        } catch (Throwable t) {
            ApsSystemUtils.logThrowable(t, this, "addMessageType");
            throw new ApsSystemException("Error adding message type", t);
        }
        return response;
    }
View Full Code Here

        } catch (ApiException ae) {
            response.addErrors(ae.getErrors());
            response.setResult(IResponseBuilder.FAILURE, null);
        } catch (Throwable t) {
            ApsSystemUtils.logThrowable(t, this, "updateMessageType");
            throw new ApsSystemException("Error updating Message type", t);
        }
        return response;
    }
View Full Code Here

  private void loadConfig() throws ApsSystemException {
    try {
      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem(JpAvatarSystemConstants.CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpAvatarSystemConstants.CONFIG_ITEM);
      }
      AvatarConfigDOM configDOM = new AvatarConfigDOM();
      this.setConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Error on AvatarManager startup", t);
    }
  }
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.