Package com.agiletec.aps.system.exception

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


            ((IEntityTypesConfigurer) this.getMessageManager()).removeEntityPrototype(typeCode);
        } catch (ApiException ae) {
            throw ae;
        } catch (Throwable t) {
            ApsSystemUtils.logThrowable(t, this, "deleteMessageType");
            throw new ApsSystemException("Error deleting message type", t);
        }
    }
View Full Code Here


      String xml = new AvatarConfigDOM().createConfigXml(config);
      this.getConfigManager().updateConfigItem(JpAvatarSystemConstants.CONFIG_ITEM, xml);
      this.setConfig(config);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "updateConfig");
      throw new ApsSystemException("Error updating jpavatar config", t);
    }
  }
View Full Code Here

      } else if (this.getConfig().getStyle().equalsIgnoreCase(AvatarConfig.STYLE_GRAVATAR)) {
        url = this.getGravatarUrl() + this.getGravatarHash(username);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getAvatar");
      throw new ApsSystemException("Error getting avatar for user " + username, t);
    }
    return url;
  }
View Full Code Here

          }
        }
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getAvatarResource");
      throw new ApsSystemException("Error getting avatar resource for user " + username, t);
    }
    return avatarFile;
  }
View Full Code Here

          hash = MD5Util.md5Hex(email);
        }
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getGravatarHash");
      throw new ApsSystemException("Error getting gravatar hash for user " + username, t);
    }
    return hash;
  }
View Full Code Here

      ApsSystemUtils.getLogger().trace("Saving avatar to position: " + path);
      File destFile = new File(path);
      FileUtils.copyFile(file, destFile);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "saveAvatar");
      throw new ApsSystemException("Error saving avatar for user " + username, t);
    }
  }
View Full Code Here

      if (null != fileToDelete) {
        FileUtils.forceDelete(fileToDelete);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "removeAvatar");
      throw new ApsSystemException("Error deleting avatar for user " + username, t);
    }
  }
View Full Code Here

    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getHitsByInterval(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get hits by interval", t);
    }
    assertNotNull(result);
  }
View Full Code Here

    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try{
      result = _statsDAO.getAverageTimeSite(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertNotNull(result);
  }
View Full Code Here

    Calendar initialDate = converter.getCalendarDay("06/03/2007", 0, 0, 0, 0);
    Calendar finalDate = converter.getCalendarDay("10/03/2007", 23, 59, 59, 999);
    try {
      result = _statsDAO.getAverageTimePage(initialDate,finalDate);
    } catch (Throwable t) {
      throw new ApsSystemException("error in get average time site", t);
    }
    assertNotNull(result);
  }
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.